You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lombok is a well-known and widely used project which is served to eliminate a lot of java boilerplate code.
As you probably know Lombok does its stuff at build time thus its code doesn't need at runtime.
I believe it is a common approach to remove it from uber jar. And usually, it works great(with jooby1 also) but jooby-apt generate sources which reference some Lombok classes directly.
Don't know if there is any good solution for this, but at least should be known.
Maybe we can add some configuration to jooby-apt, to mark annotations(packages) which jooby-apt should ignore.
The text was updated successfully, but these errors were encountered:
@imeszaros Ideally we should check for current usage of annotation and in addition to a skip list, we should check if the annotation has a non-runtime retention and ignore them (not sure if possible)
Lombok is a well-known and widely used project which is served to eliminate a lot of java boilerplate code.
As you probably know
Lombok
does its stuff at build time thus its code doesn't need at runtime.I believe it is a common approach to remove it from uber jar. And usually, it works great(with jooby1 also) but
jooby-apt
generate sources which reference someLombok
classes directly.For example for the code:
Next lines will be generated by the jooby-apt
so if we remove Lombok jar from uber jar we will catch
Caused by: java.lang.ClassNotFoundException: lombok.AccessLevel
Don't know if there is any good solution for this, but at least should be known.
Maybe we can add some configuration to
jooby-apt
, to mark annotations(packages) whichjooby-apt
should ignore.The text was updated successfully, but these errors were encountered: