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
28 changes: 28 additions & 0 deletions src/main/resources/META-INF/rewrite/jakarta-ee-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ description: Update Jakarta EE XML Web Services Dependencies for EE 10.
preconditions:
- org.openrewrite.Singleton
recipeList:
- org.openrewrite.java.migrate.jakarta.ReplaceJakartaJwsWithJakartaXmlWs
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.xml.bind
artifactId: jakarta.xml.bind-api
Expand All @@ -479,6 +480,33 @@ recipeList:
newVersion: 4.x
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.ReplaceJakartaJwsWithJakartaXmlWs
displayName: Replace `jakarta.jws-api` with `jakarta.xml.ws-api`
description: >-
Starting with Jakarta EE 10, the standalone `jakarta.jws-api` artifact was retired
and its content was merged into `jakarta.xml.ws-api`. This recipe replaces a declared
`jakarta.jws:jakarta.jws-api` dependency in place with `jakarta.xml.ws:jakarta.xml.ws-api`,
and adds `jakarta.xml.ws:jakarta.xml.ws-api` directly when `jakarta.jws` was only
available transitively.
preconditions:
- org.openrewrite.Singleton
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: jakarta.jws
oldArtifactId: jakarta.jws-api
newGroupId: jakarta.xml.ws
newArtifactId: jakarta.xml.ws-api
newVersion: 4.0.x
# Fallback for when jakarta.jws-api was only available transitively; ChangeDependency
# above handles the in-place replacement of a declared dependency.
- org.openrewrite.java.dependencies.AddDependency:
groupId: jakarta.xml.ws
artifactId: jakarta.xml.ws-api
version: 4.0.x
onlyIfUsing: jakarta.jws..*
Comment thread
evie-lau marked this conversation as resolved.
acceptTransitive: true
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.jakarta.UpdateJerseyDependencies
displayName: Update GlassFish Jersey Dependencies to 3.1.x
description: Update GlassFish Jersey Dependencies to 3.1.x.
Expand Down
Loading
Loading