Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Version 1.16.0 renames Delombok, now inaccessible #810
I'm trying to update the lombok-maven-plugin for the 1.16.0 release and am running into a build problem:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project lombok-maven-plugin: Compilation failure: Compilation failure:
It looks like the classes were renamed:
My code needs to import Delombok, but how can it given the rename? (I'm surprised that the extension doesn't need to be .class.)
How does your AntTask deal with this?
Hmm, I don't know if we updated that one :-)
I don't have an exact solution but you need to use lombok.launch.Main﹟createShadowClassLoader() or similar code to create a classloader that's aware of the SCL.lombok files, and use Class.forName on that classloader to load your own code.
I think you either need to use reflection or have at least one of your classes in the same package since all (or at least most) of the code involved is package private.
We will need to consider a public API, and also update the AntTask.