Project Lombok AllArgsConstructor not working

1.9k views Asked by At

It seems like many people are having this problem, but none of the problems i have researched so far are that basic like my problem.

I only got this object:

enter image description here

and a basic call in my main method:

enter image description here

Bamm... already not working. The compilataion fails with this error

enter image description here

I am using IntelliJ and have installed the Lombok plugin.

enter image description here

If it helps... here is my build.gradle: enter image description here

Any ideas ?

1

There are 1 answers

3
nkrivenko On BEST ANSWER

Lombok uses the annotation processor to do its magic so you have to add lombok annotationProcessor dependency in your build.gradle file. Add this line inside your dependencies block:

annotationProcessor 'org.projectlombok:lombok:1.18.6'