Adding Lombok plugin to IntelliJ project

Anders Pedersen picture Anders Pedersen · Dec 15, 2016 · Viewed 106.1k times · Source

I'm trying to add Lombok to my Spring Boot project in IntelliJ IDEA. So far, I've

  1. added the plugin under Settings - Plugins (version 0.13.16)

  2. added compile('org.projectlombok:lombok') to my Gradle dependencies

  3. 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.

Answer

Aman Tuladhar picture Aman Tuladhar · Dec 15, 2016

You need to Enable Annotation Processing on IntelliJ IDEA

> Settings > Build, Execution, Deployment > Compiler > Annotation Processors

enter image description here