Lombok best practices

MSAL

Applies all recipes that enforce best practices for using Lombok.

org.openrewrite.java.migrate.lombok.LombokBestPractices
mod run . --recipe=org.openrewrite.java.migrate.lombok.LombokBestPractices

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. Enable Lombok annotation processor
  2. Migrate Lombok to a Java 11 compatible version
  3. Use Lombok logger annotations instead of explicit fields
  4. Convert getter methods to annotations
  5. Convert setter methods to annotations
  6. Use @NoArgsConstructor where applicable
  7. Use @RequiredArgsConstructor where applicable
  8. Use @AllArgsConstructor where applicable
  9. Change Maven dependency scope for org.projectlombok:lombok to provided
  10. Change Maven dependency scope for org.projectlombok:lombok-mapstruct-binding to provided
  11. Exclude Maven dependency org.projectlombok:lombok
  12. Append to text file