将现有的 Gradle Git 项目导入 Eclipse [英] Import existing Gradle Git project into Eclipse

查看:32
本文介绍了将现有的 Gradle Git 项目导入 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆