Questions tagged [gradle-eclipse]

Gradle plugin for support of all Eclipse files for a project

182 questions
9
votes
1 answer

How to run a gradle task from a java code?

I need to run the gradle eclipse task to an external gradle project from a java method, is it possible to do it using the Gradle Tooling API ?
khouloud
  • 417
  • 4
  • 17
8
votes
1 answer

In gradle how to use sources from relative path outside of project

I have following 2 projects placed adjacent to each other in some folder and I want to include specific sources from a non-gradle project into this project with the structure as follows. rootfolder/ my-gradle-project/ src/main/java …
bhantol
  • 9,368
  • 7
  • 44
  • 81
8
votes
1 answer

Gradle build failure: Could not resolve all dependencies for configuration ':classpath'

I have this error: A problem occurred configuring root project Could not resolve all dependencies for configuration ':classpath'. Could not resolve org.hibernate.build.gradle:version-injection-plugin:1.0.0. Could not GET…
Menaga
  • 105
  • 1
  • 3
  • 10
8
votes
1 answer

Migrating from existing dynamic web project to gradle

I am having an existing java dynamic web project which I created using eclipse. I usually just create a war file via eclipse and then deploy it to tomcat. Now I want to use Gradle to build my project and create the war file. Is there an eclipse…
Jenny
  • 345
  • 3
  • 5
  • 15
8
votes
1 answer

Specification for Eclipse .settings/org.eclipse.wst.common.component file

Note: I asked this same question on the Eclipse Web Tools Project (WTP) forum but unfortunately haven't had any responses. I'm hoping someone on SO has some insight. Is there a specification for the .settings/org.eclipse.wst.common.component Eclipse…
8
votes
1 answer

STS 3.4.0 Gradle Support not working

I am trying to get started on Gradle using STS 3.4.0 release, but when I try to add the Gradle support to my project all the options in the sub-menu are grayed out. I tried removing the project and importing it as a Gradle Project, but when I click…
CodeChimp
  • 8,016
  • 5
  • 41
  • 79
7
votes
1 answer

what is the purpose of "rawproto" files?

In Android Studio, in ~/StudioProjects/$APPLICATION/build/android-profile/, there are many files profile-*.rawproto, e.g., profile-2017-04-25-18-19-51-815.rawproto. I have never seen the file suffix .rawproto, does this suggest a certain kind of…
7
votes
3 answers

Gradle with Eclipse - incomplete .classpath when multiple sourcesets

I have a gradle build script with a handful of source sets that all have various dependencies defined (some common, some not), and I'm trying to use the Eclipse plugin to let Gradle generate .project and .classpath files for Eclipse, but I can't…
Tomas Aschan
  • 58,548
  • 56
  • 243
  • 402
7
votes
2 answers

Can't see Generate Gradle build files when migrating from Eclipse to Android Studio

I tried the instructions listed here http://developer.android.com/sdk/installing/migrate.html#Export, including upgrading my adt plugin (I simply checked for updates in Eclipse, per http://developer.android.com/tools/help/adt.html#Updating ; it said…
Cartesian Theater
  • 1,920
  • 2
  • 29
  • 49
6
votes
2 answers

Gradle build successful but has failures

I have been trying to get the integrated Gradle buildship to work with Eclipse, but there is always something screwy causing errors that only an expert could figure out, so here I am. My code is impeccable, so it must be something behind the scenes.…
Shmod
  • 133
  • 2
  • 6
6
votes
2 answers

Eclipse Buildship Plugin: nesting source folders

I'm using Gradle Buildship plugin in order to build my Eclipse projects. Gradle itselft is well configured. So, I'm able to build anything from shell. The gradle project has a root folder and other subprojects. When I click on Gradle -> Refresh…
Jordi
  • 20,868
  • 39
  • 149
  • 333
6
votes
2 answers

Gradle subprojects won't compile with dependency on other subproject

I have a Multi project gradle project with the following structure. Project A: The top level project that all sub projects reside in. SubProject B: SubProject C: SubProject D: SubProject E: SubProject Shared: Every 'SubProject' has a…
Nick H
  • 8,897
  • 9
  • 41
  • 64
6
votes
1 answer

Gradle complains it can't convert long to int even while the method takes long as parameter

When running "gradle build" I got the following error with one of our projects, couple of the classes get the following compile error: cannot be applied to given types; this._logFilter.setFirstResult(firstResult); …
CharlesC
  • 1,310
  • 14
  • 26
6
votes
1 answer

How to replace text in files using Gradle/Groovy functionality

I am trying to work around the problem described in GRADLE-2293 where generated files are always updated because a timestamp is written to the Eclipse files located in directory .settings by the Gradle plugin which generates the Eclipse project…
centic
  • 15,565
  • 9
  • 68
  • 125
6
votes
1 answer

eclipse gradle workspace resolution between gradle projects not working

2 gradle projects, A and B where A has compile dependency on B defined. Remappig of JARs is enabled for maven & gradle projects. I've tried with custom tooling model enabled and disabled. I have local repositories defined in a file under init.d…
Dusan
  • 115
  • 1
  • 7
1
2
3
12 13