安装Gradle:
我用的是Myeclipse,需要安装2个插件。1. Help → Install from catalog...
在打开的Eclipse Marketplace中,Search→Find 中检索 "gradle",在检索结果中安装Buildship Gradle Integration和Gradle IDE Pack。
2. Help → Install from Site...
在打开的Install中检索"http://download.eclipse.org/buildship/updates/e42/releases/1.0",在检索结果中,选择Buildship:Eclipse Plug-ins for Gradle并安装。
安装结果确认:
File → New → Project... → 出现Gradle Project即表示安装插件成功。
使用Gradle:
Window → Show View → Other... → 添加 Gradle Tasks在View中,有Gradle的各种命令,比如要打jar包,可以选择build → jar → Run Gradle Tasks即可。
其他命令可以自己研究。