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.
(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)
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.
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With