Import existing Gradle Git project into Eclipse

2019-01-13 00:41发布

I've installed eclipse gradle plugin from here

http://kaczanowscy.pl/tomek/2010-03/gradle-ide-integration-eclipse-plugin

Is there a simple way to import into eclipse gradle project using gui, not doing stuff

described here: http://gradle.org/docs/current/userguide/eclipse_plugin.html

?

10条回答
别忘想泡老子
2楼-- · 2019-01-13 00:58

You can do following steps:

  1. Install the Builship Gradle Gntegration using the Eclipse Marketplace. Simply type Builship and click on search item. Now click on Install.

2.Click on FIle -> Import ▸ Existing Gradle Project.

  1. Navigate to project root directory.

  2. Click on finish to load your project.

Might be it will take some time for first time to import gradle project. So please be passion on it. Thank you.

查看更多
做个烂人
3楼-- · 2019-01-13 00:58

Add the following to your build.gradle

apply plugin: 'eclipse'

and browse to the project directory

gradle eclipse

Once done, you could import the project from eclipse as simple Java Project.

查看更多
混吃等死
4楼-- · 2019-01-13 01:02

Open eclipse and right click in the package explorer → import Select gradle Browse to the location where you checked out Click “Build Model” Select all the projects and hit finish

查看更多
混吃等死
5楼-- · 2019-01-13 01:03

Go to the GitHub page where they are maintain the official repository: https://github.com/spring-projects/eclipse-integration-gradle/blob/master/README.md

Copy the latest release link: http://dist.springsource.com/release/TOOLS/gradle (latest release)

Use this in Eclipse->Help->Install New Software..->Paste the link in "Work With"->press enter->select the names of the extension->click next and agree the license and follow the prompts.

After you have installed just import the project as a grade project and eclipse will take of the rest.

查看更多
冷血范
6楼-- · 2019-01-13 01:07

The simpliest way is to use sts gradle integration and import project

http://static.springsource.org/sts/docs/2.7.0.M1/reference/html/gradle/gradle-sts-tutorial.html

Don't forget to click "Build Model" button.

查看更多
beautiful°
7楼-- · 2019-01-13 01:13

I use another Eclipse plugin to import existing gradle projects.

You can install the Builship Gradle Gntegration 2.0 using the Eclipse Marketplace client.

Then you choose FIle ▸ Import ▸ Existing Gradle Project.

Finially, indicate your project root directory and click finish.

查看更多
登录 后发表回答