Lombok: Gradle 4.9 + lombok 1.18 = build failed

Created on 17 Jul 2018  路  8Comments  路  Source: projectlombok/lombok

Now lombok not comatible with gradle 4.9. Please, fix it.

With Gradle 4.8.1 all works perferct.

Most helpful comment

@rspilker Yes, today i'm testing it with edge-version 1.18.1 - it works !!! Thanks!

When you planning release your changes and publish lombok to maven repo?

All 8 comments

Can you test this using the edge release? Although not mentioned in the changelog, we did improve gradle support.

@rspilker Yes, today i'm testing it with edge-version 1.18.1 - it works !!! Thanks!

When you planning release your changes and publish lombok to maven repo?

I have also tested and could confirm that 1.18.0 and 1.16.22 is not working with Gradle 4.8
e.g when I add to my class XXX annotation Builder then occurred compilation error "Cannot find symbol XXXBuilder" but if I downgrade to Gradle 4.6, the code is being compiled correctly.

I am convinced that Lombok should be aligned to recent version of Gradle.

Duplicate of #1716

for whoever is also running in this issue:

In the the gradle tutorial in the oficial website it uses older version of the net.ltgt.apt plugin, which was causing my gradle4.9+java10 build to fail.

Upgrading net.ltgt.apt plugin to version 0.18 fixed the problem.

Ref:

image

I get the same issue with Gradle 4.10.2 and Lombok 1.16.22. Why did this issue get closed? Which version fixes this?

Lombok 1.18.2 fixes this.

Thanks, it does indeed.

Was this page helpful?
0 / 5 - 0 ratings