lombok support
tkruse opened this issue · 4 comments
Hi,
I think this has been requested before. But since mapstruct seems to have found a solution for lombok integration:
http://mapstruct.org/news/2017-02-20-mapstruct-1_2_0_Beta1-is-out-with-lombok-support-and-direct-field-access/
might be possible to do the same for Selma.
Support for Lombok has already been successfully done.
please have a look at Bug #125
What we are missing is some documentation on this solution and a sample project.
I am using gradle, not sure how to do same there. Close this issue when you want.
@slemesle not sure how one can say that it has successfully been done :). It works for MapStruct out of the box - Selma needs quite some fiddling around in the configs. I would not call this 'support for lombok'.
As others already stated, I would also greatly appreciate if true lombok support could make it to Selma some time in the future.
I am able to solve this issue by proper selection of lombok and selma version.
Below is the sample code from my build.gradle file:-
dependencies { compileOnly("org.projectlombok:lombok:1.16.14") compileOnly("fr.xebia.extras:selma-processor:1.0") compile("fr.xebia.extras:selma:1.0") }
Note that Lombok 1.16.14 or newer is required.