Questions tagged [gradle-eclipse]

Gradle plugin for support of all Eclipse files for a project

182 questions
1
vote
0 answers

org.gradle.api.GradleScriptException in Gradle while building

I am not able to build Gradle project in my OSX and getting below error due to org.gradle.api.GradleScriptException. java.lang.NoSuchMethodError:…
chivas_hvn
  • 361
  • 3
  • 10
  • 24
1
vote
1 answer

Gradle -- Eclipse classpath still include the jar files that are excluded in the build.gradle file

I'm trying to exclude few jars from the .classpath file which is generated by the gradle eclipse plugin. Though i do the following stuff in my build.gradle to exclude these jars, the classpath still contains these jar files. configurations { …
Hemanth
  • 11
  • 3
1
vote
0 answers

Using the JAR files created with “gradle build” command throws run time exceptions

I am using gradle-3.0. The OS is Windows 10. I do not have any dependent projects. I have a java library developed with Gradle plugin in Eclipse. Now when I export JAR files from Eclipse everything is working as expected. But when I create JAR files…
IMK
  • 654
  • 9
  • 15
1
vote
1 answer

Eclipse Gradle buildship import sub project compilation error

I have project xxxWeb using project xxxAPI. Both projects are sub project of a parent project. Project xxxAPI uses a third-party library jar jar1.jar, which has a class somepackage.ClassA. Project xxxAPI itself also has identical somepackage.ClassA…
timpham
  • 556
  • 2
  • 7
  • 25
1
vote
2 answers

Getting error during dex with a project using javafx and apache POI

I'm trying to use Apache POI on Android in order to do that i created a gradle project on eclipse but when i execute the gradle task androidInstall i get an error during the dex step. (run task is working) Here the error: Uncaught translation error:…
Thomas
  • 354
  • 1
  • 3
  • 13
1
vote
2 answers

Gradle Project Dependencies in Eclipse with Buildship

I use Eclipse Mars.2 (4.5.2) with Buildship 1.0.14. Gradle version is 2.12. I import my gradle project into the Eclipse. No .project or .classpath files exist before import. All modules imported successfully. But almost every project with java code…
dds
  • 2,335
  • 1
  • 31
  • 45
1
vote
1 answer

How can I add new custom "sample projects" to the Eclipse "New Gradle Project" wizard?

I am using Eclipse Mars.2 (4.5.2) and Gradle IDE 3.7.3.201602250836-RELEASE. How can I add a custom "sample project" to the "New Gradle Project" wizard? It's annoying to have to do the same cleanup steps to remove the sample stuff each time I…
Kaypro II
  • 3,210
  • 8
  • 30
  • 41
1
vote
1 answer

How to get Gradle to generate java.library.path for eclipse

I have a gradle project which is using sqlite4java and I'm working in eclipse. My problem is that when I get gradle to generate the eclipse project files, the project classpath contains sqlite4java's native libraries on the classpath instead of on…
Alex Q
  • 3,080
  • 2
  • 27
  • 29
1
vote
2 answers

Having Spring Gradle dependency container before JRE container results in compilation errors

I am converting a Java project from Ant to Gradle. The IDE of choice for our team is Eclipse. I have installed the Spring Gradle plugin for Eclipse, applied the Gradle project nature and enabled dependency management. The result is some compilation…
1
vote
1 answer

Gradle : dependency license for Java/Spring library

I have a Java/SpringREST project setup using Gradle. Is there a way in Gradle to generate a report of all dependencies (jar library) and license info of each dependency.
Albert Pinto
  • 392
  • 2
  • 6
  • 17
1
vote
4 answers

Could not fetch model of type 'EclipseProject' using Gradle

I have a gradle project which is configured and working fine in Windows environment but the same is not working when I try and run it in Mac. Project and Environment Configuration: Gradle 2.5/2.6 Eclipse Luna/Mars Gradle Project using…
Vipul Agarwal
  • 1,513
  • 3
  • 14
  • 24
1
vote
1 answer

How to set .classpath in STS (eclipse) by gradle for AspectJ and spring-aspects

I have a project using compile time weaving for @Configurable from spring-aspects into my classes using the @Configurable. I use the Spring Tool Suite 3.7.0 and got everything running if I use gradle tasks to build and start my application. (Thanks…
1
vote
1 answer

How to build and run android project with gradle in eclipse

Hello i build an android app using gradle in eclipse. I allways build the project in command line using gradle. Now i try to build and run it in eclipse on android device emulator. In eclipse i don't know how can i build the project with gradle an…
1
vote
1 answer

Gradle include native libaries in folder at specific path

I have an eclipse setup with the following directory structure /native/Linux /native/Windows /native/Mac /build.gradle and some subdirectories in those folders. I need build.gradle to copy the entire layout of /native to /org/sqlite/native in the…
Tschallacka
  • 27,901
  • 14
  • 88
  • 133
1
vote
1 answer

Dealing with multiple inter-dependent groups of gradle projects in a single Eclipse workspace

This has eluded me for a very long time. I still don't know if there is a way for Eclipse with any plugins to realize that some gradle projects (in workspace) depend on other gradle projects (also in workspace) when these are coming from otherwise…
Learner
  • 1,215
  • 1
  • 11
  • 26