Use latest JAXB API and runtime for Jakarta EE 8

MSAL

Update build files to use the latest JAXB runtime from Jakarta EE 8 to maintain compatibility with Java version 11 or greater. The recipe will add a JAXB run-time, in Gradle runtimeOnly and Maven runtime scope, to any project that uses javax.xml.bind and has a transitive dependency on the JAXB API. The resulting dependencies still use the javax namespace, despite the move to the Jakarta artifact.

org.openrewrite.java.migrate.javax.AddJaxbRuntime

Required

Which implementation of the JAXB run-time to add to projects that have transitive dependencies on the JAXB API.

mod run . --recipe=org.openrewrite.java.migrate.javax.AddJaxbRuntime \ -P runtime=glassfish

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.