Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't import gradle project Eclipse. "Finish" button does nothing

I am trying to import Gradle project to Eclipse. But it is impossible. Hitting "finish" button does nothing. I've already tried to import a few projects which are fine, because on another PC it just works with them. Also creating a new Gradle project does not work.

I have gradle installed, added GRADLE_HOME and JAVA_HOME, in PATH defined %GRADLE_HOME%\bin and JAVA_HOME\bin. Using gradle or java in command prompt works fine.

But here are screenshots with something weird: https://imgur.com/a/AOpUy
On default settings it does not work either.

like image 237
pjoter Avatar asked Dec 10 '17 15:12

pjoter


People also ask

How to add Gradle nature in Eclipse workspace?

(I'm using Eclipse Oxygen) try this: import the project as a normal project (import > Existing Projects into Workspace), and then right click on the project and then click on "Configure" and then click on "Add Gradle Nature", summarizing (right click on the project > Configure > Add Gradle Nature)

What is Gradle tooling in Eclipse?

Gradle Inc., the company behind the Gradle build framework provides Gradle tooling for the Eclipse IDE. This tooling allows to create and import Gradle enabled projects into the Eclipse IDE. It also allows to run Gradle tasks and monitor it execution. The Eclipse project itself is called Buildship . It is available on Buildship on Github. 2.

How do I import a Gradle project in Visual Studio?

Select the File Import… Gradle Gradle Project menu entry for this. After pressing the Next > button, you need to specify the root directory of your Gradle project. You may now press Finish button and use the default settings for the import or press the Next button and specify the Gradle runtime settings.

Does Gradle-apt-plugin support annotation processing?

7. Annotation processing (apt) with Gradle in Eclipse 7.1. Overview The gradle-apt-plugin supports annotation processing for Gradle. It also supports using this in Eclipse and IntelliJ.


1 Answers

I had the same problem and I was able to get it working by upgrading the Buildship Gradle Integration plugin.

The version I had prior was 2.0 which doesn't support Java 9 but the 2.2 plugin does.

You can update it through eclipse in Help > Eclipse Marketplace... > Installed > Update. (I'm using Eclipse Oxygen)

like image 104
LacombeJ Avatar answered Oct 17 '22 01:10

LacombeJ