16

i'm looking for an eclipse ide integration for gradle. I've installed the gradle editor from
http://www.breskeby.com/downloads/gradle/eclipse/update/

But this is far away from what i expect from an ide integration. It provides only some syntax highlighting. No auto completion, error mark, task list, etc.

Is there any real ide integration for eclipse?

Cengiz
  • 5,375
  • 6
  • 52
  • 77
  • faced the same issue: breskeby plugin doesn't add gradle dependencies to project classpath ( Reading the answers - is there only way to migrate to STS IDE or install full STS support to your eclipse? – yetanothercoder Dec 29 '11 at 08:23
  • 4
    I neither use one of the current gradle IDE integrations because there is no additional value. Generate the eclipse project files `.project` and `.classpath` using the gradle eclipse plugin `apply plugin: 'eclipse'`. Invoke `gradle eclipse` from the command line console. This will add the required dependencies. – Cengiz Dec 29 '11 at 12:05
  • in this case do you have to `gradle eclipse` each time after your dependencies change? Won't it override your eclipse project settings to default? – yetanothercoder Dec 29 '11 at 16:03
  • Yes i'll do it each time. If there is something specific needed, you could configure it in your gradle build file. I do also not check in the eclipse project files into version control system. In that way you assure that every development team member is using the same eclipse project settings. – Cengiz Dec 29 '11 at 16:39

4 Answers4

15

The SpringSource Tool Suite includes Gradle support.

See http://static.springsource.org/sts/docs/2.7.0.M1/reference/html/gradle/faq.html for some information, though it is a bit out-of-date. Better support was added in STS 2.8.0.

http://www.springsource.com/landing/best-development-tool-enterprise-java for downloading STS.

You can install STS into your Eclipse installation and Gradle support along with it, if you don't want to start from the STS release.

David Resnick
  • 4,891
  • 5
  • 38
  • 42
  • That is far the same as the one on http://www.breskeby.com It is very disappointing that there is nothing better. – Cengiz Dec 08 '11 at 12:24
  • Are you sure? Is the plugin the one you see here? http://www.youtube.com/watch?v=1koQ2V920qE STS has a different one. It isn't perfect, but it's not bad at all, similar in approach to the m2e plugin (maven support). – David Resnick Dec 08 '11 at 13:05
  • Yes, i mean that one. I've tried it again. STS 2.8.1 and also directly update into eclipse indigo. – Cengiz Dec 09 '11 at 19:36
  • The plugin in the video above is not STS gradle support. – David Resnick Dec 09 '11 at 21:43
  • Yes, it is the one from http://www.breskeby.com. The task list is only available on run configuration. It does not have a useful auto completion. You cannot configure your own version of gradle. You must use the elder version 1.0-milestone-3... – Cengiz Dec 10 '11 at 11:35
13

Looks like the STS team extracted the plugin into stand alone module https://github.com/SpringSource/eclipse-integration-gradle/

mohamed.ibrahim
  • 413
  • 3
  • 8
5

Nodeclipse also has Gradle for Eclipse that runs gradle. That lets use gradle with any project (Java, Maven, C++, Android)

There is also Minimalist Editor for .gradle files

This can be used where Pivotal (former SpringSource) Gradle IDE can't be used yet.

Both can be installed together via Gradle IDE Pack

Community
  • 1
  • 1
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
3

The Buildship project from Gradleware provides great Eclipse integration. See https://github.com/eclipse/buildship for its homepage and http://www.vogella.com/tutorials/EclipseGradle/article.html for an introduction.

vogella
  • 24,574
  • 4
  • 29
  • 26
  • The Buildship [is replacing the STS plug-in](https://github.com/eclipse/buildship/wiki/Migration-guide-from-STS-Gradle-to-Buildship). I am moving from STS Gradle to Buildship. – Franklin Yu May 29 '16 at 06:36