Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/main/resources/META-INF/rewrite/jakarta-ee-9.yml
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,7 @@ recipeList:
newGroupId: jakarta.xml.bind
newArtifactId: jakarta.xml.bind-api
newVersion: 3.0.x
- org.openrewrite.java.migrate.jakarta.RetainJaxbApiForJackson
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.xml.bind
artifactId: jakarta.xml.bind-api
Expand Down Expand Up @@ -858,6 +859,30 @@ recipeList:
- org.openrewrite.java.migrate.jakarta.JavaxXmlToJakartaXmlXJCBinding
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.RetainJaxbApiForJackson
displayName: Retain `javax.xml.bind:jaxb-api` when `jackson-module-jaxb-annotations` is present
description: >-
When migrating from `javax.xml.bind` to `jakarta.xml.bind` 3.0+, the `javax.xml.bind:jaxb-api`
dependency is normally replaced. However, if `jackson-module-jaxb-annotations` is on the classpath
(and still uses the `javax.xml.bind` namespace), this recipe ensures `javax.xml.bind:jaxb-api`
remains available as a runtime dependency to prevent `NoClassDefFoundError`.
tags:
- jaxb
- javax
- jakarta
preconditions:
- org.openrewrite.java.dependencies.DependencyInsight:
groupIdPattern: com.fasterxml.jackson.module
artifactIdPattern: jackson-module-jaxb-annotations
recipeList:
- org.openrewrite.java.dependencies.AddDependency:
groupId: javax.xml.bind
artifactId: jaxb-api
version: 2.3.x
scope: runtime
acceptTransitive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.JavaxXmlToJakartaXmlXJCBinding
displayName: Migrate XJC Bindings to Jakata XML
description: Java EE has been rebranded to Jakarta EE, migrates the namespace and version in XJC bindings.
Expand Down
Loading
Loading