publicissapient-france / selma

Selma Java bean mapping that compiles
http://selma-java.org
Apache License 2.0
213 stars 38 forks source link

lombok support #168

Open tkruse opened 7 years ago

tkruse commented 7 years ago

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.

slemesle commented 7 years ago

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.

tkruse commented 7 years ago

I am using gradle, not sure how to do same there. Close this issue when you want.

DXTR66 commented 6 years ago

@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.

ajay-kmr commented 6 years ago

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.