MajesticOl
MajesticOl

Reputation: 391

Project Lombok AllArgsConstructor not working

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 ?

Upvotes: 3

Views: 2655

Answers (1)

nkrivenko
nkrivenko

Reputation: 1281

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'

Upvotes: 5

Related Questions