Skip to content

Commit

Permalink
Account for jaxb-runtime switching to runtime scope from compile sc…
Browse files Browse the repository at this point in the history
…ope (#29)
  • Loading branch information
BoykoAlex authored Jun 20, 2024
1 parent 0c25126 commit f50b859
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main/resources/META-INF/rewrite/hibernate-6.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,19 @@ recipeList:
- org.openrewrite.java.dependencies.RemoveDependency:
groupId: org.hibernate
artifactId: hibernate-entitymanager
# Account for jaxb-runtime becoming `runtime` vs `compile` dependency
# Add the jakarta JAXB artifact if it is missing but a project uses types in java.xml.bind
- org.openrewrite.java.dependencies.AddDependency:
groupId: jakarta.xml.bind
artifactId: jakarta.xml.bind-api
version: 3.0.x
onlyIfUsing: javax.xml.bind..*
acceptTransitive: true
# If a project already had the jakarta api, make sure it is at the latest version.
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: jakarta.xml.bind
artifactId: jakarta.xml.bind-api
newVersion: 3.0.x

---
type: specs.openrewrite.org/v1beta/recipe
Expand Down

0 comments on commit f50b859

Please sign in to comment.