Migrate Lombok to a Java 11 compatible version

MSAL

Update Lombok dependency to a version that is compatible with Java 11 and migrate experimental Lombok types that have been promoted.

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

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. Upgrade Gradle or Maven dependency versions org.projectlombok:lombok:1.18.x
  2. Upgrade the Lombok version of the io.freefair.lombok Gradle plugin 1.18.48
  3. Change type lombok.experimental.Builder to lombok.Builder
  4. Change type lombok.experimental.Value to lombok.Value
  5. Change type Wither to With
  6. Change type lombok.experimental.var to lombok.var
  7. Change type lombok.experimental.val to lombok.val
  8. Prefer final var over lombok.val
  9. Flag usage of a Lombok feature lombok.val.flagUsage = error
  10. Flag usage of a Lombok feature lombok.var.flagUsage = error
  11. Migrate Lombok's @__ syntax to onX_ for Java 8+