Generator-jhipster: Let's use lombok

Created on 27 Jun 2017  路  13Comments  路  Source: jhipster/generator-jhipster

Overview of the issue

Use Lombok

Motivation for or Use Case

I'm using jHipster and lombok. The Lombok definitely saves time. I have to remove a lot of redundant code after jHipster generation in favour of lombok usage.

JHipster Version(s)

4.5.6

duplicate wont-fix

Most helpful comment

Oh no, not again :-(

All 13 comments

Oh no, not again :-(

@jdubois I guess you already discussed it... :)

Oh yes :-)
And at work I just had a team (from another company, so they didn't do like us) who just lost several hours because of it (yet again, that's my 4th failed project with Lombok !!).
So latest issue is that it doesn't work well with Jacoco so your Jenkins/Sonar build will fail.

Currently I also heard if was failing with Jackson Afterburner. But the list goes on :-)

hmm... I've read several issues` discussions
I've got your pain :)
I felt the same when configured lombok with Maven, but I finished it without any issues on Bamboo and Jenkins CI servers. It works like a song now.

But I agree that lombok can be a wrong solution in some cases (e.g. when you start specifying field names in annotations as a string).

Why don't you try to do a module for that ?

  • scan existing files, replace the code you don't want
  • post hook on entity, replace all getter, setter, etc

A module for your need would be perfect, there are so many people who want Lombok but no one want try to do a module :(

After seeing tonight what can be done with module (db-helper and ff4j), I'm sure it's doable

Oh yes. And if it works well, I would be happy to be proven wrong, and integrate this into JHipster.

Yea, it is a good idea. Probably, I will try. Thanks, guys!

Just for the record, spring-cloud-netflix project has just removed Lombok in 1.4.0.M1 and it took them 10 pull requests to do so.

@gmarziou Do you know the reason for this removal? Unfortunately couldn't find any details in web

No, I suppose the discussion was not public.

Thanks for keep updating us.

Was this page helpful?
0 / 5 - 0 ratings