IntelliJ Gradle: Missing Constructors, Methods, etc. when Assembling [duplicate]

I like using Lombok, but it requires enabling annotation processor in IDEs settings. Because developers use different IDEs and CI/CD has it's own compilation flow, plus I would really like to avoid explaining junior devs why do they need to check this checkbox, I am looking for a way to avoid checking this checkbox. Ideally, I would like to let know a junior to run git clone and then ./gradlew run. Is there any way for a Gradle to fully set up annotation processor (without manually clicking)?

It would be really great if it would work on more than IntelliJ IDEA.

The main problem I see is that Lombok requires Lombok plugin installed and activated in IntelliJ IDEA.

Is it possible to run project that uses Lombok by running just: git clone ... && ./gradlew run ?


You can use the Lombok Gradle plugin
Or you can use it by Gradle dependencies:

dependencies {
    compileOnly 'org.projectlombok:lombok:1.18.8'
    annotationProcessor 'org.projectlombok:lombok:1.18.8'
}

You can read more about Annotation Processor in IntelliJ and Gradle