Skip to content

Commit

Permalink
Update recipe for new OpenRewrite
Browse files Browse the repository at this point in the history
One change is odd though:
openrewrite/rewrite#4420
  • Loading branch information
gsmet committed Aug 15, 2024
1 parent ee38322 commit da3ae63
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions recipes/src/main/resources/quarkus-updates/core/3.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -768,32 +768,33 @@ type: specs.openrewrite.org/v1beta/recipe
name: io.quarkus.updates.core.quarkus30.JavaxPersistenceXmlToJakartaPersistenceXml
displayName: Migrate xmlns entries in `persistence.xml` files
description: Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation.

preconditions:
- org.openrewrite.FindSourceFiles:
filePattern: '**/persistence.xml'
recipeList:
# TODO upgrade for JPA 3.1
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: name
elementName: //property
oldValue: javax.persistence
newValue: jakarta.persistence
fileMatcher: "**/persistence.xml"
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: version
elementName: persistence
newValue: 3.0
fileMatcher: "**/persistence.xml"
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xmlns
elementName: persistence
oldValue: http://xmlns.jcp.org
newValue: https://jakarta.ee
fileMatcher: "**/persistence.xml"
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xmlns
elementName: persistence
oldValue: http://java.sun.com/xml/ns/persistence
newValue: https://jakarta.ee/xml/ns/persistence
- org.openrewrite.xml.ChangeTagAttribute:
attributeName: xsi:schemaLocation
elementName: persistence
newValue: https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd
fileMatcher: "**/persistence.xml"

---
type: specs.openrewrite.org/v1beta/recipe
name: io.quarkus.updates.core.quarkus30.JacksonJavaxToJakarta
Expand Down Expand Up @@ -1105,7 +1106,7 @@ recipeList:
oldGroupId: io.quarkus
oldArtifactId: quarkus-bootstrap-maven-plugin
newGroupId: io.quarkus
newArtifactId: quarkus-extension-maven-plugin
newArtifact: quarkus-extension-maven-plugin

#####
# Additional recipes for Kotlin
Expand Down

0 comments on commit da3ae63

Please sign in to comment.