Skip to content

Commit

Permalink
Merge pull request quarkusio#24824 from gsmet/rewrite-profile
Browse files Browse the repository at this point in the history
Move rewrite-maven-plugin definition to a profile
  • Loading branch information
gsmet authored Apr 7, 2022
2 parents 51843c0 + f22186d commit b065bfa
Show file tree
Hide file tree
Showing 34 changed files with 861 additions and 432 deletions.
54 changes: 38 additions & 16 deletions bom/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5740,33 +5740,55 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.maven.javax.managed</recipe>
<recipe>io.quarkus.maven.javax.versions</recipe>
<recipe>io.quarkus.jakarta-versions</recipe>
<recipe>io.quarkus.jakarta-jaxrs-jaxb</recipe>
<recipe>io.quarkus.jakarta-security</recipe>
<recipe>io.quarkus.smallrye</recipe>
<recipe>io.quarkus.bom.resteasy-microprofile</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>rewrite-cleanup</id>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.maven.javax.managed</recipe>
<recipe>io.quarkus.maven.javax.versions</recipe>
<recipe>io.quarkus.jakarta-versions</recipe>
<recipe>io.quarkus.jakarta-jaxrs-jaxb</recipe>
<recipe>io.quarkus.jakarta-security</recipe>
<recipe>io.quarkus.smallrye</recipe>
<recipe>io.quarkus.bom.resteasy-microprofile</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jakarta-rewrite-cleanup</id>
<activation>
<property>
<name>jakarta-rewrite-cleanup</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>4.21.0-SNAPSHOT</version>
<configuration>
<configLocation>${maven.multiModuleProjectDirectory}/jakarta/rewrite.yml</configLocation>
<activeStyles>
<style>io.quarkus.style.maven</style>
</activeStyles>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxrs-jaxb-cleanup</recipe>
<recipe>io.quarkus.jakarta-security-cleanup</recipe>
Expand Down
33 changes: 24 additions & 9 deletions extensions/arc/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.extensions.arc</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.extensions.arc</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 24 additions & 9 deletions extensions/elytron-security-properties-file/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-security-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-security-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 24 additions & 9 deletions extensions/elytron-security/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-security-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-security-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 24 additions & 9 deletions extensions/jaxb/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxb-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxb-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 24 additions & 9 deletions extensions/resteasy-classic/rest-client-jackson/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxb-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxb-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 24 additions & 9 deletions extensions/resteasy-classic/rest-client-jaxb/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxb-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.jakarta-jaxb-switch</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 24 additions & 9 deletions extensions/resteasy-classic/rest-client/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.rest-client</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.rest-client</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 24 additions & 9 deletions extensions/resteasy-classic/resteasy-common/runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,30 @@
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.resteasy-common</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>jakarta-rewrite</id>
<activation>
<property>
<name>jakarta-rewrite</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<configuration>
<activeRecipes>
<recipe>io.quarkus.resteasy-common</recipe>
</activeRecipes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading

0 comments on commit b065bfa

Please sign in to comment.