Skip to content

Commit

Permalink
Merge pull request #27962 from gsmet/jakarta-progress-23
Browse files Browse the repository at this point in the history
Jakarta - Fix some issues introduced when switching to parsson artifact and update WildFly Security to 2.0.0.Final
  • Loading branch information
gsmet authored Sep 15, 2022
2 parents 92fba0a + 42b876a commit 7f4d212
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 37 deletions.
1 change: 1 addition & 0 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,7 @@
</activeStyles>
<activeRecipes>
<recipe>io.quarkus.build-parent</recipe>
<recipe>io.quarkus.jakarta-json-cleanup</recipe>
</activeRecipes>
</configuration>
</plugin>
Expand Down
15 changes: 0 additions & 15 deletions extensions/smallrye-reactive-messaging-amqp/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,6 @@
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-server</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.jboss.logmanager</groupId>
<artifactId>jboss-logmanager</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
Expand Down Expand Up @@ -123,5 +109,4 @@
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxb-switch</recipe>
<recipe>io.quarkus.jakarta-json-cleanup</recipe>
</activeRecipes>
</configuration>
</plugin>
Expand Down
18 changes: 0 additions & 18 deletions integration-tests/reactive-messaging-amqp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,24 +59,6 @@
<groupId>org.apache.activemq</groupId>
<artifactId>artemis-server</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.jboss.logmanager</groupId>
<artifactId>jboss-logmanager</artifactId>
</exclusion>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.johnzon</groupId>
<artifactId>johnzon-core</artifactId>
</exclusion>
<exclusion>
<groupId>jakarta.json</groupId>
<artifactId>jakarta.json-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
Expand Down
29 changes: 27 additions & 2 deletions jakarta/rewrite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ recipeList:
# WildFly Security
- org.openrewrite.maven.ChangePropertyValue:
key: wildfly-elytron.version
newValue: 2.0.0.Beta3
newValue: 2.0.0.Final
---
type: specs.openrewrite.org/v1beta/recipe
name: io.quarkus.jakarta-jaxrs-jaxb
Expand Down Expand Up @@ -316,6 +316,31 @@ recipeList:
artifactId: resteasy-json-p-provider
exclusionGroupId: jakarta.json
exclusionArtifactId: jakarta.json-api
- org.openrewrite.maven.RemoveExclusion:
groupId: org.apache.activemq
artifactId: artemis-server
exclusionGroupId: jakarta.json
exclusionArtifactId: jakarta.json-api
- org.openrewrite.maven.RemoveExclusion:
groupId: org.apache.activemq
artifactId: artemis-amqp-protocol
exclusionGroupId: jakarta.json
exclusionArtifactId: jakarta.json-api
- org.openrewrite.maven.RemoveExclusion:
groupId: org.eclipse
artifactId: yasson
exclusionGroupId: jakarta.json
exclusionArtifactId: jakarta.json-api
- org.openrewrite.maven.RemoveExclusion:
groupId: org.eclipse
artifactId: yasson
exclusionGroupId: org.glassfish
exclusionArtifactId: jakarta.json
- org.openrewrite.maven.RemoveExclusion:
groupId: jakarta.json.bind
artifactId: jakarta.json.bind-api
exclusionGroupId: jakarta.json
exclusionArtifactId: jakarta.json-api
---
type: specs.openrewrite.org/v1beta/recipe
name: io.quarkus.jakarta-json
Expand Down Expand Up @@ -652,7 +677,7 @@ recipeList:
newValue: 3.0
- org.openrewrite.maven.ChangePropertyValue:
key: resteasy-reactive-testsuite.repo.ref
newValue: c5785f3465fa87395574fde1274c1712b3aa728b
newValue: 4116f1a0c5605ad00d7779367dac8002af8c6882
---
type: specs.openrewrite.org/v1beta/recipe
name: io.quarkus.maven.javax.managed
Expand Down
8 changes: 6 additions & 2 deletions jakarta/transform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ sed -i '[email protected]@org.glassfish.jaxb.runtime.v2.Conte
sed -i '/com.sun.xml.internal.bind.v2.ContextFactory/d' extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java

## JSON-P implementation switch
sed -i 's@<runnerParentFirstArtifact>org.glassfish:jakarta.json</runnerParentFirstArtifact>@<runnerParentFirstArtifact>org.eclipse.parsson:jakarta.json</runnerParentFirstArtifact>@g' extensions/logging-json/runtime/pom.xml
sed -i 's@<parentFirstArtifact>org.glassfish:jakarta.json</parentFirstArtifact>@<parentFirstArtifact>org.eclipse.parsson:jakarta.json</parentFirstArtifact>@g' extensions/jsonp/runtime/pom.xml
sed -i 's@<runnerParentFirstArtifact>org.glassfish:jakarta.json</runnerParentFirstArtifact>@<runnerParentFirstArtifact>org.eclipse.parsson:parsson</runnerParentFirstArtifact>\n <runnerParentFirstArtifact>jakarta.json:jakarta.json-api</runnerParentFirstArtifact>@g' extensions/logging-json/runtime/pom.xml
sed -i 's@<parentFirstArtifact>org.glassfish:jakarta.json</parentFirstArtifact>@<parentFirstArtifact>org.eclipse.parsson:parsson</parentFirstArtifact>@g' extensions/jsonp/runtime/pom.xml
sed -i 's@<excludedArtifact>org.glassfish:javax.json</excludedArtifact>@<excludedArtifact>org.glassfish:javax.json</excludedArtifact>\n <excludedArtifact>org.glassfish:jakarta.json</excludedArtifact>\n <excludedArtifact>org.eclipse.parsson:jakarta.json</excludedArtifact>@g' extensions/jsonp/runtime/pom.xml
sed -i 's@import org.glassfish.json.JsonProviderImpl;@import org.eclipse.parsson.JsonProviderImpl;@g' extensions/jsonp/deployment/src/main/java/io/quarkus/jsonp/deployment/JsonpProcessor.java

## cleanup phase - needs to be done once everything has been rewritten
Expand Down Expand Up @@ -299,6 +300,9 @@ sed -i '[email protected]:[email protected]:narayana-lr
sed -i '[email protected]:[email protected]:lra-client-jakarta@g' extensions/narayana-lra/runtime/pom.xml
sed -i 's@META-INF/services/javax.ws.rs.client.ClientBuilder@META-INF/services/jakarta.ws.rs.client.ClientBuilder@g' extensions/narayana-lra/runtime/pom.xml

find integration-tests/gradle -name build.gradle | xargs sed -i 's/javax.enterprise.context.ApplicationScoped/jakarta.enterprise.context.ApplicationScoped/g'
find integration-tests/gradle -name build.gradle | xargs sed -i 's/javax.ws.rs.Path/jakarta.ws.rs.Path/g'

transform_documentation
sed -i 's@javax/ws/rs@jakarta/ws/rs@g' docs/src/main/asciidoc/resteasy-reactive.adoc
sed -i 's@https://javadoc.io/doc/jakarta.ws.rs/jakarta.ws.rs-api/2.1.1@https://javadoc.io/doc/jakarta.ws.rs/jakarta.ws.rs-api/3.1.0@g' docs/src/main/asciidoc/resteasy-reactive.adoc
Expand Down

0 comments on commit 7f4d212

Please sign in to comment.