Add lombok-mapstruct-binding when both MapStruct and Lombok are used
MSALAdd the lombok-mapstruct-binding annotation processor as needed when both MapStruct and Lombok are used.
org. openrewrite. java. migrate. AddLombokMapstructBindingmod run . --recipe= org. openrewrite. java. migrate. AddLombokMapstructBindingInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Add Gradle dependency
org.projectlombok:lombok-mapstruct-binding:0.2.0 - Add
lombok-mapstruct-bindingdependency for Maven when both MapStruct and Lombok are used - Add
lombokto themaven-compiler-pluginannotation processor paths - Add an annotation processor to
maven-compiler-plugin - Add
mapstruct-processorto themaven-compiler-pluginannotation processor paths - Keep Spring Boot annotation processors in newly created
annotationProcessorPaths