If you use this project then step 2 is already done.
- You need to install lombok into eclipse, see https://projectlombok.org/setup/eclipse
- Setup your gradle build to allow additional configuration magic to happen (see below)
- launch eclipse and open the project using the existing gradle project configuration.
- have the apt-eclipse plugin generate the annotation configuration: run
gradle eclipseJdtApt eclipseFactorypath eclipseJdt
in the terminal. - refresh the gradle configuration (right-click --> Gradle --> Refresh Gradle Project)
- check if the annotation-processing is enabled: right-click the project --> Properties --> java compiler --> annotation processing. If not enabled then enable it.
- clean the project and it should do the trick.
- run the test in the project and it should pass.
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
// Allow configuration calls for setting up the eclipse annotation processing configuration.
id 'net.ltgt.apt-eclipse' version "0.21"
}