I want to build a project with gradle. I have included build.gradle in my project. But eclipse is not recognizing it as gradle project and I can't build it. Can anybody give a solution for this.
Buildship is an Eclipse plugin that allows you to build applications and libraries using Gradle through your IDE.
1 Answer. Show activity on this post. Select 'Help > About Eclipse' (on Macs this is 'Eclipse > About Eclipse'). Click the 'Installation Details' button to display the installation details dialog.
I just had this problem in Spring Tool Suite.
Here's what I did.
The imported project's build.gradle
then appeared in the drop-down options of the Gradle view.
If you are using the Buildship Eclipse plugin for Gradle integration, you can try to add the following snippet into your build.gradle file:
eclipse {
project.natures 'org.eclipse.buildship.core.gradleprojectnature'
.....
}
Then run "gradle eclipse" to re-generate Eclipse project files and refresh your project in Eclipse.
In Eclipse Neon you:
Right-click on your project --> Configure --> Add Gradle Nature.
Your project will automatically refresh and you will see all the dependencies being downloaded by Gradle.
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