adding lombok plugin to intellij project

I'm trying to add lombok to my spring boot project in IntelliJ IDEA

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.

but it still doesn't recognize the lombok import nor the annotations

What am I missing?

** solved **

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

在这里输入图像描述


You need to activate the plugin for the project in the Intellij settings

在这里输入图像描述

Settings -> Other Settings -> Lombok plugin


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
  • 链接地址: http://www.djcxy.com/p/96590.html

    上一篇: Lombok IntelliJ集成

    下一篇: 为intellij项目添加lombok插件