Skip to content

Commit

Permalink
Jakarta - Fix the Parsson situation
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Sep 15, 2022
1 parent 6382413 commit bee662a
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 35 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
25 changes: 25 additions & 0 deletions jakarta/rewrite.yml
Original file line number Diff line number Diff line change
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
5 changes: 3 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

0 comments on commit bee662a

Please sign in to comment.