This question already has answers here:
Closed 6 months ago.
I'm trying to add Lombok to my Spring Boot project in IntelliJ IDEA. So far, I've
added the plugin under Settings - Plugins (version 0.13.16)
added compile('org.projectlombok:lombok')
to my Gradle dependencies
enabled annotation processing
It still doesn't recognize either the Lombok import or the annotations.
What am I missing?
Solved:
I had to run an update on my Gradle file.
You need to Enable Annotation Processing on IntelliJ IDEA
> Settings > Build, Execution, Deployment > Compiler > Annotation Processors
To add the Lombok IntelliJ plugin to add lombok support IntelliJ:
- Go to File > Settings > Plugins
- Click on Browse repositories...
- Search for Lombok Plugin
- Click on Install plugin
- Restart IntelliJ IDEA
Be sure to activate the plugin for the project in the Intellij settings.
- Click Settings