Reputation: 31
I am facing a weird error when running gradle build in intellij using lombok. Lombok is not resolving getters and setters during running the build. although im not seeing any compilation error in intellij its only appearing when im running build.
Please note that
I have enabled Annotation Processing
I have installed Lombok Plugin
I have added @Data @Builder on the class
Upvotes: 0
Views: 965
Reputation: 31
I added dependencies as below and solved my problem
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Earlier it was just compile 'org.projectlombok:lombok'
Upvotes: 3