12

I'm trying to integrate Eclipse Luna with Gradle.

Eclipse Integration Gradle GitHub page includes instructions for Installing Gradle Tooling from update site.

I followed the instructions for the release (stable) version.

After I selected all the components (as shown below) I proceeded with installation.

It didn't go as expected and brought me to the Install Remediation Page (below) that showed that only Gradle IDE component could be installed. ( Click here for larger image). enter image description here

At this point I'm not sure what caused the problem and what to do about.

PM 77-1
  • 12,933
  • 21
  • 68
  • 111

3 Answers3

21

The plugin you are using is wrong. There is an update for Luna here.

You can alternatively install the plugin directly within eclipse with this integration link.

Behnam
  • 6,510
  • 6
  • 35
  • 65
  • What is Spring Ide or Spring framework, is it necessary if i want only install gradle support plug-in – Mokhtarabadi Feb 06 '15 at 07:18
  • @Mokhtarabadi: have a look at https://github.com/spring-projects/eclipse-integration-gradle/#eclipse-integration-gradle – Behnam Feb 07 '15 at 04:59
  • http://dist.springsource.com/release/TOOLS/update/e4.4/ has access denied. is there a way to add gradle to an existing eclipse project without having to use their special ide? – Ray Tayek Feb 19 '15 at 03:27
  • as you see in the site http://spring.io/tools/ggts/all they must have internal server error. Just wait for them to fix it. – Behnam Feb 19 '15 at 06:15
  • @Water: Please use the other one, meanwhile I will try to find an alternative. – Behnam Apr 19 '15 at 06:16
8

Gradleware now offers direct support for the Eclipse IDE. See http://www.vogella.com/tutorials/EclipseGradle/article.html for an introduction.

vogella
  • 24,574
  • 4
  • 29
  • 26
  • It seems to be slated for Eclipse 4.5 (Mars). – PM 77-1 Jun 08 '15 at 14:46
  • Should also work with older versions, if not please open a bug for Buildship project. – vogella Jun 08 '15 at 20:01
  • I was hoping the tutorial could take me far enough to do the "Hello World" projects at http://www.drdobbs.com/jvm/writing-build-scripts-with-gradle/240168648?pgno=1 . Pasting them into build.gradle didn't work. – Noumenon Sep 10 '15 at 01:42
1

In addition to plugin memtioned by @Campiador. You must have supported project nature in your eclipse's .project file in order for your project to show up in "Gradle Tasks" view.

See following example:

Add one or more natures in build.gradle file:

eclipse.project {
  natures 'org.springsource.ide.eclipse.gradle.core.nature', 'org.eclipse.jdt.core.javanature'
}

After this change, just run gradle eclipse command from your shell/command prompt. Newly generated .project will have proper natures in it. Just refresh your project in eclipse and now you will see your project in Gradle Tasks view.

Pritesh Mhatre
  • 3,847
  • 2
  • 23
  • 27