Questions tagged [gradle-eclipse]

Gradle plugin for support of all Eclipse files for a project

182 questions
3
votes
4 answers

Invalid classpath publish/ export dependency /ouat-contract. Project entries not supported

I am trying create an Gradle multi project similar to this structure ouat-services - ouat-contract - ouat-servicesImpl (web project) I followed the eclipse example and define my ouat-services settings.gradle as include "ouat-contract",…
arthurfnsc
  • 915
  • 3
  • 13
  • 30
3
votes
1 answer

Eclipse Gradle plugin spawning hundreds of processes

When I start Eclipse with the Gradle plugin on, sometimes literally hundreds of Java processes will suddenly spawn. They look like this: 26000 pts/24 Sl 0:01 /usr/lib/jvm/default-java//bin/java -Dfile.encoding=utf-8 -Xmx512m…
jiangty
  • 311
  • 2
  • 9
3
votes
3 answers

Executable jar with libgdx: asset not found

I created a little Game using the libgdx libraries and exported it to an executable jar. In Eclipse the Game works fine but the jar crashes with: PS E:\Workspaces\JavaGames\Executable Jars> java -jar Pk2.jar SetToNewScreen called Exception in thread…
RoHo
  • 33
  • 1
  • 6
3
votes
1 answer

Gradle Error: No method add() found for arguments

So I'm adding a custom plugin to Gradle, specifically jmeter. https://github.com/kulya/jmeter-gradle-plugin I thought everything worked, but now this error is occuring: FAILURE: Build failed with an exception. * Where: Build file…
ObligatorRory
  • 215
  • 2
  • 11
3
votes
1 answer

log4j.properties file is not picking in build.gradle

When I execute the build script with gradle all the test cases are working fine. But I configured the log4j logging as well and unfortunately it's not displaying in the console. log4j.properties: # Log levels # Uncomment the following line to…
saravanakumar
  • 49
  • 3
  • 8
3
votes
5 answers

Build Model Timeout when importing Gradle project in Eclipse

I've created a new libGDX project, which basically creates a gradle project that you can then import into your respective IDE - I'm using Eclipse Kepler. I import the project by going to file > import > gradle > gradle project. I then point the…
user818700
3
votes
1 answer

gradle eclipse-wtp plugin adding wb-resource removes webAppDir from deployment

Using Spring Tool Suite 3.5 with gradle plugin, gradle 1.11 I want to achieve this: extract the content of project dependend library into WAR file both when running gradle build from command line and when deploying from Eclipse into Tomcat. I have…
Fanick
  • 713
  • 7
  • 25
2
votes
1 answer

eclipse ResolutionException: Modules A and B export package P to module C

I try to migrate my java8 spring project to java11. Now I get the following exception when I try to run it from eclipse: Error occurred during initialization of boot layer java.lang.module.ResolutionException: Modules java.activation and…
judos
  • 445
  • 4
  • 14
2
votes
0 answers

Parallel Gradle task to run concurrently

task abc(type: Exec){ commandLine './text1.sh' } task def(Type:Exec){ commandLine './text2.sh' } task ListOfTasks(dependsOn['clean']){ doFirst{ abc.execute() def.execute() } } As doFirst is not parallel and I wanna run this…
Ashwini Jha
  • 757
  • 1
  • 8
  • 16
2
votes
0 answers

Failed to run a gradle task

I try to run a gradle clean in cmd, but I have the message below: A problem occurred configuring project ':modules:project:project-api'. Failed to notify project evaluation listener. …
javaxiss
  • 680
  • 3
  • 13
  • 34
2
votes
2 answers

In Buildship: how can I substitute a Gradle project with a built jar?

I would like to be a able to get Eclipse to ignore one Gradle project, and instead use a pre-built version of it. Background I have a project "parser" written in Scala, and a dozen others written in Java. The weakest link in my tool-set is Scala…
Luke Usherwood
  • 3,082
  • 1
  • 28
  • 35
2
votes
1 answer

Apply custom Eclipse formatter to Gradle project

I am currently using Eclipse Oxygen and Gradle 4.4 for a project. In Eclipse, it is possible to manually set a custom Java formatter on a workspace or a project. This requires everyone working on the team to import the formatter XML file any time…
whatitis
  • 23
  • 4
2
votes
3 answers

How to rename a gradle project in eclipse?

I am new to gradle and trying to use the gradle plugin in eclipse. Created a java gwt project using an online project generator https://gwt-project-generator.cfapps.io/ It imported all the dependencies very nicely. Now I am trying to rename the…
Gautam
  • 1,030
  • 13
  • 37
2
votes
0 answers

How can I configure the Buildship plugin to download the Maven API Javadoc in Eclipse?

I am building a gradle plugin in Groovy using Eclipse Neon 3. I have linked the internal dependencies as below, and have generated an Eclipse configuration using the Eclipse gradle plugin. dependencies { compile gradleApi() compile localGroovy()} I…
Jörn Guy Süß
  • 1,408
  • 11
  • 18
2
votes
1 answer

Get JavaDoc jars for dependencies in Gradle

I am working on a Gradle task to create a project for an IDE based on Eclipse. This requires to generate both a .project and a .classpath file. This part is absolutely no problem and I can use the Gradle Eclipse Plugin via apply plugin: 'eclipse',…
Lukas Körfer
  • 13,515
  • 7
  • 46
  • 62