Questions tagged [gradle-eclipse]

Gradle plugin for support of all Eclipse files for a project

182 questions
6
votes
1 answer

How to setup a Gradle build for a JSF2 application to be hosted by JBoss AS 7.1?

At this moment I have a build.gradle file that successfuly compiles and tests (using JUnit4) a very very simple java project. My next step is to add JSF2 support (in order to have a web JSF2 application) to this build. The idea is to host the…
AlexSC
  • 1,823
  • 3
  • 28
  • 54
5
votes
1 answer

How to convert Java Gradle project to Dynamic Web Project?

I am following this article https://www.linkedin.com/pulse/building-jax-rs-project-eclipse-gradle-neeraj-malhotra On how to build a JAX-RS project in Eclipse with Gradle I am using Eclipse Java EE IDE for Web Developers. Version: Oxygen.2 Release…
Hector
  • 4,016
  • 21
  • 112
  • 211
5
votes
2 answers

Correctly import Gradle projects in Eclipse

I have a set of 15 or so interdependent Gradle Java modules/projects that build correctly with Gradle. However, I run into issues importing them into Eclipse. If I import them via the Gradle Eclipse plug-in (import as Gradle project) and select…
roark
  • 792
  • 1
  • 12
  • 29
5
votes
1 answer

How to support AARs in Eclipse?

In the new Gradle build system, we can package Android projects in very convenient .AAR format. Unfortunately the ADT Eclipse plugin, v22 , does not support this file format. Please can it do so.
TooCool
  • 10,598
  • 15
  • 60
  • 85
5
votes
2 answers

Gradle - Add folder to Eclipse classpath

I am migrating a legacy application from Ant to Gradle. The requirement is to build a zip file with a certain folder structure which is used by the deployment team. I am able to create the zip file in the correct format, so-far-so-good. I am able to…
vegemite4me
  • 6,621
  • 5
  • 53
  • 79
4
votes
1 answer

Customize org.eclipse.jdt.core.prefs with Gradle eclipse plugin

I try to customize some Eclipse preferences for a specific set of projects. More specifically, using gradle eclipse, I want to generate the .settings/org.eclipse.jdt.core.prefs file with some specific entries. For example…
Ealrann
  • 368
  • 1
  • 15
4
votes
2 answers

Build gradle failed: can not identify path JDK, CreateProcess error=206, The filename or extension is too long

Im using Gradle to build Spring Boot project. I have added environment variable for JDK Java. And then I set this JDK path in gradle.properties. When I perform to build with: gradle myProject:bootRun, I received an exception of JDK path wrong. My…
Khanh Luong Van
  • 476
  • 3
  • 14
  • 31
4
votes
3 answers

Gradle jar with jersey dependencies produces MessageBodyReader not found for media type=application/json

I've written a Jersey client which communicates with a 3rd party service and it works if I run it from Eclipse but it throws a MessageBodyProviderNotFoundException if I run the jar file. My build.gradle: // Apply the java plugin to add support for…
muilpp
  • 1,293
  • 4
  • 17
  • 36
4
votes
2 answers

How can I create a Java EE 7 application using eclipse and gradle?

I want to setup a simple Java EE 7 application in eclipse that gets built with gradle. My current tool stack is: Eclipse Java EE 4.5 with Buildship Gradle 2.5 Websphere Liberty Profile Using Maven and Wildfly before, I did basically following…
4
votes
0 answers

Gradle Buildship won't download dependencies

I am used to using the Eclipse Gradle plugin by Pivotal in Luna, but now that Mars was released I am trying to use Buildship. However, I have not yet figured out how to refresh my project's dependencies. I know that the project is set up correctly…
StrongJoshua
  • 975
  • 10
  • 24
4
votes
3 answers

Gradle task tomcatRun is successful but webapp throws 404 error

I have a Spring MVC webapp in Eclipse, which I build with Gradle. I'm using the Gradle Tomcat plugin as well. When I run the Gradle tomcatRunWar task, everything works as expected and my webapp is responsive, as it should be. But when I run the…
AlexG
  • 1,596
  • 2
  • 17
  • 26
4
votes
1 answer

build.gradle for eclipse project with multiple source folders

I have a eclipse project with source folders like: /src/main/java/module1 /src/main/java/module2 /src/main/java/module3 inside these src folders i have packages like: com.example.module1.xxx com.example.module2.yyy com.example.module3.zzz I have…
gladiator
  • 722
  • 1
  • 9
  • 16
3
votes
2 answers

How to set Eclipse's output directory from Gradle

I am using Gradle's eclipse plugin. For cross-project reference reasons, I need Eclipse's output directory to not be the default bin, rather ecbuild. Everytime I run ./gradlew eclipse, it overwrites this output directory setting. How to make sure it…
Vic Seedoubleyew
  • 9,888
  • 6
  • 55
  • 76
3
votes
1 answer

How to pass parameters to gradle in eclipse Buildship plugin while importing project

I'm importing a gradle project requiring parameters into eclipse neon using the buildship gradle plugin. Here is a fragment of the build.gradle with parameters: repositories { maven { url repoUrl credentials { …
Taras
  • 1,023
  • 8
  • 17
3
votes
2 answers

Eclipse: How to make Gradle refresh dependencies only for selected project?

I am using STS/Eclipse to work on several Gradle projects which I have loaded on my workspace. Some projects have dependencies on other projects, so I often need to perform Gradle builds into jar files, followed by a Gradle -> Refresh Dependencies…
1 2
3
12 13