Add explicit JAXB API dependencies and remove runtimes

MSAL

This recipe will add explicit API dependencies without runtime dependencies for Jakarta EE 8 when a Java 8 application is using JAXB. Any existing API 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. All JAXB runtime implementation dependencies are removed.

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

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 explicit JAXB API dependencies
  2. Remove a Gradle or Maven dependency org.glassfish.jaxb:jaxb-runtime
  3. Remove Maven managed dependency org.glassfish.jaxb:jaxb-runtime
  4. Remove a Gradle or Maven dependency com.sun.xml.bind:jaxb-impl
  5. Remove Maven managed dependency com.sun.xml.bind:jaxb-impl