Is there a Gradle plugin for Eclipse Luna?

前端 未结 3 1503
傲寒
傲寒 2020-12-11 02:17

I\'m trying to integrate Eclipse Luna with Gradle.

Eclipse Integration Gradle GitHub page includes instructions for Installing Gradle Tooli

3条回答
  •  误落风尘
    2020-12-11 02:34

    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.

提交回复
热议问题