I am not sure what am I doing wrong. Can somebody please help me out
The builder() method does not seem to be recognised. I am using IntelliJ. Is there something that I am missing?
Below are my intelliJ settings:
Aside from the dependency in the provided
scope you have to enable the annotation processing (if you are using IntelliJ Idea) and install the Lombok Plugin.
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
Annotation processing: Navigate to File
-> Settings
-> Build, Execution, Deployment
-> Compiler
-> Annotation Processors
and check Enable annotation processing
.
Lombok Plugin: Navigate to File
-> Settings
-> Plugins
and make sure the Lombok plugin is installed.
Restart IntelliJ Idea - The most likely missed part :)