After upgrading to gradle 4.7, my previously warning-free build now emits this warning:
The following annotation processors were detected on the compile c
Change the lombok dependency type from compile
to annotationProcessor
, so your dependencies section in your build.gradle
file should look like:
dependencies {
compileOnly('org.projectlombok:lombok:1.16.20')
annotationProcessor 'org.projectlombok:lombok:1.16.20'
// compile 'org.projectlombok:lombok:1.16.20' <-- this no longer works!
// other dependencies...
}