layout | title | permalink | redirect_from | sitemap | |||||
---|---|---|---|---|---|---|---|---|---|
default |
Configuring Eclipse with Gradle |
/configuring-ide-eclipse-gradle/ |
|
|
To get full Gradle support in eclipse you should install the buildship plugin. For configuring the [JavaScript]({{ site.url }}/configuring-ide-eclipse/) side you can follow the instructions for Maven.
- Select
File -> Import
- Choose
Gradle Project
- Select your projects root directory
- Click on
Next
and finish the wizard
![Import]({{ site.url }}/images/configuring_ide_eclipse_gradle_1.png)
![Select]({{ site.url }}/images/configuring_ide_eclipse_gradle_2.png)
When using buildship gradles default outputfolder is filtered and not visible in your workspace. Therefore you need to remove it from eclipse's resource filter setting.
- Right click on your project and select
Properties
- Select
Resources
- Remove the entry
build
- Select
Java Build Path
- Click
Add Folder...
- Check the path
build/generated/source/apt/main
Make sure the new source folder contains the correctly generated mapper implementations when running JHipster via eclipse.
![Exclude]({{ site.url }}/images/configuring_ide_eclipse_gradle_3.png)
![Buildpath]({{ site.url }}/images/configuring_ide_eclipse_gradle_4.png)