Remove jakarta.annotation-api dependency when managed by Spring Boot

MSAL

Best practice recipe to cleanup a direct dependency which also comes transitively for Spring Boot applications.

org.openrewrite.java.migrate.jakarta.RemoveJakartaAnnotationDependencyWhenManagedBySpringBoot
mod run . --recipe=org.openrewrite.java.migrate.jakarta.RemoveJakartaAnnotationDependencyWhenManagedBySpringBoot

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. Remove a Gradle or Maven dependency jakarta.annotation:jakarta.annotation-api