Update jakarta annotations dependency

Apache 2.0

This recipe will remove jakarta annotations dependency as it is a transitive dependency of micronaut-inject, and migrate from javax.annotation if needed.

org.openrewrite.java.micronaut.UpdateJakartaAnnotations
mod run . --recipe=org.openrewrite.java.micronaut.UpdateJakartaAnnotations

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. Migrate deprecated javax.annotation to jakarta.annotation
  2. Remove a Gradle or Maven dependency jakarta.annotation:jakarta.annotation-api