Add lombok-mapstruct-binding when both MapStruct and Lombok are used

MSAL

Add the lombok-mapstruct-binding annotation processor as needed when both MapStruct and Lombok are used.

org.openrewrite.java.migrate.AddLombokMapstructBinding
mod run . --recipe=org.openrewrite.java.migrate.AddLombokMapstructBinding

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

  1. Add Gradle dependency org.projectlombok:lombok-mapstruct-binding:0.2.0
  2. Add lombok-mapstruct-binding dependency for Maven when both MapStruct and Lombok are used
  3. Add lombok to the maven-compiler-plugin annotation processor paths
  4. Add an annotation processor to maven-compiler-plugin
  5. Add mapstruct-processor to the maven-compiler-plugin annotation processor paths
  6. Keep Spring Boot annotation processors in newly created annotationProcessorPaths