Lombok @Builder not recognised by IntelliJ

Update your lombok version.

Because @Builder gained @Singular support and was promoted to the main lombok package since lombok v1.16.0.

Source

I have

 <dependency>
            <groupId>org.projectlombok</groupId>
            <artifactId>lombok</artifactId>
            <version>1.16.20</version>
            <scope>provided</scope>
            <optional>true</optional>
        </dependency>

and haven't that problem


I did no specify the version on my pom.xml and it got the latest version by default(1.18.8 I see this under External Libraries)

<dependency>
  <groupId>org.projectlombok</groupId>
  <artifactId>lombok</artifactId>
  <optional>true</optional>
</dependency>

The Class.builder() was not working for me but after installing the plugin(https://github.com/mplushnikov/lombok-intellij-plugin) it worked.

no extra configuration required. :)