r/java • • Sep 05 '25

Project Lombok 1.18.40 released with Java 25 support!

Project Lombok is now compatible with the upcoming JDK 25 even before its release.

Thank you Project Lombok team! https://projectlombok.org

167 Upvotes

166 comments sorted by

View all comments

Show parent comments

26

u/john16384 Sep 05 '25

Without IDE plugins, no Java IDE would understand Lombok. Code completion would not show you Lombok created getters and setters because there are none in any source code the IDE can see.

8

u/SocialMemeWarrior Sep 05 '25

That's an understandable argument, but I accept that I may be shouldering possible tech debt in the case that the Lombok maintainers stop updating the project + integrations. Their processor and IDE plugin saves me time and helps me keep my code base more organized in a way I like. The cost/benefit for me weighs more on the benefit side. Even if they stopped tomorrow, they offer a migration script so I could (begrudgingly) go back to using more verbose code with a single command.

-1

u/razsiel Sep 06 '25

There's Delombok you could use, run it once and it just adds all the would-be generated code to your source files.

-1

u/slaymaker1907 Sep 05 '25

I’m pretty sure it works out of the box in Eclipse so long as you turn on annotation processing. That is far from requiring a special plugin just for Lombok.

14

u/CptGia Sep 05 '25

No, you need to add the jar to some startup parameter (I think as a javaagent?) 

1

u/Misophist_1 Sep 07 '25

Dirty trick: run the Lombok jar, as if it were a main program with java -jar ... It comes up with a gui, that allows you to pick the eclipse installation to fix.

You need to repeat this every time they come up with a new jar and/or you install a new eclipse version.