Add the Jakarta Mail API when needed

MSAL

Add the migrated API without promoting an explicitly provided or compile-only dependency, nor duplicating the API that a compile dependency on the mail implementation already bundles.

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

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 or Maven dependency jakarta.mail:jakarta.mail-api:2.0.x