将现有的 Gradle Git 项目导入 Eclipse [英] Import existing Gradle Git project into Eclipse
问题描述
我从这里安装了 eclipse gradle 插件
I've installed eclipse gradle plugin from here
http://kaczanowscy.pl/tomek/2010-03/gradle-ide-integration-eclipse-plugin
有没有一种简单的方法可以使用gui导入eclipse gradle项目,而不是做东西
Is there a simple way to import into eclipse gradle project using gui, not doing stuff
此处描述:http://gradle.org/docs/current/userguide/eclipse_plugin.html
?
推荐答案
通常很简单,只需在 build.gradle
中添加 apply plugin: "eclipse"
和运行
Usually it is a simple as adding apply plugin: "eclipse"
in your build.gradle
and running
cd myProject/
gradle eclipse
然后刷新您的 Eclipse 项目.
and then refreshing your Eclipse project.
有时您需要调整 build.gradle
以某种非常具体的方式生成 Eclipse 设置.
Occasionally you'll need to adjust build.gradle
to generate Eclipse settings in some very specific way.
有 对 Eclipse 的 gradle 支持 如果您使用的是 STS,但我不确定它有多好.
There is gradle support for Eclipse if you are using STS, but I'm not sure how good it is.
我所知道的唯一一个对 gradle 提供良好原生支持的 IDE 是 IntelliJ IDEA.它可以从 GUI 完全导入 gradle 项目.您可以试用免费的社区版.
The only IDE I know that has decent native support for gradle is IntelliJ IDEA. It can do full import of gradle projects from GUI. There is a free Community Edition that you can try.
这篇关于将现有的 Gradle Git 项目导入 Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!