New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lombok Processing #289
Comments
Humm interesting, thanks for the info, let me have a look and come back to you |
I have been doing a lot of work trying to figure out how this works. I seem to have been able to get Lombok, MapStruct, and Achilles to all work together fine without any changes to any of the projects. I will be exploring this more over the next week or so, so I will update this with my final conclusion. |
Hello, I'm very interested on this investigation (Heavily using Lombok and Achilles), what's the outcome of your investigation, is there any way to configure a Maven project to make them work properly? |
I found that using lombok version 1.16.14 and putting it very first in the pom dependencies (and in the managed dependencies) that it works. |
Thanks! I'll try it. |
I just found this issue the solution proposed by @kevinmic will work. However, that would work only due to implementation details in the maven and the java annotation processor tool work. In order to make this work properly, i.e. order independent the other annotation processor needs to get all This type is currently in the mapstruct package. However, if there is interest we are more than happy to find an alternative solution for this class and move it to some other package and publish it under some other maven artifact. |
I am looking to upgrade the the latest Achilles and noticed that you added an annotation processor. I heavily use Lombok to generate getters/setters for my entities and would like to continue to do so. I am assuming that your annotation processor will not play nicely with Lombok.
Recently Lombok worked around this problem with another project and came up with a solution. Maybe that solution could be implemented in Achilles?
A quote from the Lombok release --
Here are some links to the threads where they solved this issue
mapstruct/mapstruct#510
projectlombok/lombok#973
Any thoughts as to whether Achilles could be made compatible?
The text was updated successfully, but these errors were encountered: