Spring Boot 2.0 with Lombok, Mapstruct, and Hibernate Meta-model Generation integration
-
JDK 9 (Tested with JDK 9.0.4)
-
IDE (Tested with Eclipse Oxygen and Intellij 2017.3.4 Ultimate Edition)
-
Source code
-
May use Git support in IDE or direct download and then unzip
-
-
For Eclipse user, Lombok Plugin need to download seperately.
❗
|
Buildship in stock Eclipse Oxygen contains bugs that makes importing Gradle Project impossible with JDK 9. |
-
Install Lombok plugin
-
Update Buildship plugin
-
Help > Eclipse Marketplace…
-
Search for "Buildship"
-
Click "Installed" button
-
Click "Update"
-
-
Import downloaded source as "Existing Gradle Project"
-
Source should show error for now, will be fixed after step "Refresh Gradle Project"
-
-
In "Gradle Tasks" view or make a new Run Configuration, run test task
-
If everything works, the tests should be all passed
-
Right click project in "Project Explorer" and then Gradle > Refresh Gradle Project
-
Import project in Intellij from downloaded soure path
-
In Import Model prompt, select "Import Project as external module".
-
In next screen, select "Use auto-import" and finish.
-
Install Lombok plugin inside Intellij, then restart Intellij.
-
After some loading, project should be setup automatically.
-
Run test task in Gradle view to ensure everything works.