Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import existing Gradle Git project into Eclipse

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

?

like image 405
Vyacheslav Avatar asked May 23 '12 15:05

Vyacheslav


People also ask

How do I import an existing Gradle project into STS?

Step 1: Open your Eclipse IDE and go to File » Import. Step 2: Search for Gradle, expand the folder and go to Gradle » Existing Gradle Project » Next. Step 3: Specify the root directory of the Gradle project to import and click on the Next button.

How do I import Gradle?

Launch Android Studio, and click File > New > Import Project. Locate your project directory, click the build. gradle file you created above to select it, and then click OK to import your project.


1 Answers

Usually it is a simple as adding apply plugin: "eclipse" in your build.gradle and running

cd myProject/ gradle eclipse 

and then refreshing your Eclipse project.

Occasionally you'll need to adjust build.gradle to generate Eclipse settings in some very specific way.

There is gradle support for Eclipse if you are using STS, but I'm not sure how good it is.

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.

like image 63
rodion Avatar answered Sep 19 '22 12:09

rodion