Is there a Gradle plugin for Eclipse Luna?

╄→尐↘猪︶ㄣ 提交于 2019-12-28 20:34:03

问题


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).

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


回答1:


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.




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/25333657/is-there-a-gradle-plugin-for-eclipse-luna

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!