Add explicit JAXB API dependencies

MSAL

This recipe will add explicit API dependencies for Jakarta EE 8 when a Java 8 application is using JAXB. Any existing dependencies will be upgraded to the latest version of Jakarta EE 8. The artifacts are moved to Jakarta EE 8 version 2.x which allows for the continued use of the javax.xml.bind namespace. Running a full javax to Jakarta migration using org.openrewrite.java.migrate.jakarta.JavaxMigrationToJakarta will update to versions greater than 3.x which necessitates the package change as well. Modern Jakarta JAXB APIs are preserved; known legacy JAXB consumers receive a separate javax JAXB API when needed.

org.openrewrite.java.migrate.javax.AddJaxbAPIDependencies
mod run . --recipe=org.openrewrite.java.migrate.javax.AddJaxbAPIDependencies

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. Supply javax JAXB alongside modern Jakarta JAXB
  2. Add Java EE 8 JAXB API dependencies