Skip to content

Commit 72ac7df

Browse files
committed
WINDUPRULE-945 quarkus3 alias and other feedback implemented (#980)
* WINDUPRULE-945 Set Quarkus version 3.1.0.Final * WINDUPRULE-945 Created 'quarkus3' target alias * WINDUPRULE-945 Suggested 'quarkus-resteasy-reactive' (instead of 'quarkus-resteasy') (cherry picked from commit 983cf9f)
1 parent 7a38d25 commit 72ac7df

File tree

7 files changed

+24
-13
lines changed

7 files changed

+24
-13
lines changed

rules/rules-reviewed/quarkus/java-ee/javaee-api-to-quarkus.windup.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import java.util.stream.Collectors
2525
import java.util.stream.StreamSupport
2626

2727
final IssueCategory mandatoryIssueCategory = new IssueCategoryRegistry().getByID(IssueCategoryRegistry.MANDATORY)
28-
final Link guideLink = Link.to("Quarkus - Guides", "https://quarkus.io/guides/resteasy")
28+
final Link guideLink = Link.to("Quarkus - Guides", "https://quarkus.io/guides/resteasy-reactive")
2929

3030
static boolean matchesProject(GraphRewrite event, FileLocationModel payload) {
3131
final Iterable<? extends WindupVertexFrame> previouslyFound = Optional.ofNullable(Variables.instance(event).findVariable("discard")).orElse(Collections.emptySet())
@@ -57,7 +57,7 @@ ruleSet("javaee-api-to-quarkus-groovy")
5757
if (matchesProject(event, payload)) {
5858
((Hint) Hint.titled("Replace JAX-RS dependency")
5959
.withText("""
60-
At least one Java class importing from the `javax.ws.rs` package has been found so the dependency `javax:javaee-api` has to be replaced with `io.quarkus:quarkus-resteasy` artifact.
60+
At least one Java class importing from the `javax.ws.rs` package has been found so the dependency `javax:javaee-api` has to be replaced with `io.quarkus:quarkus-resteasy-reactive` artifact.
6161
""")
6262
.withIssueCategory(mandatoryIssueCategory)
6363
.with(guideLink)

rules/rules-reviewed/quarkus/java-ee/javaee-pom-to-quarkus.windup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<properties>
5757
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
5858
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
59-
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
59+
<quarkus.platform.version>3.1.0.Final</quarkus.platform.version>
6060
</properties>
6161
<dependencyManagement>
6262
<dependencies>
@@ -93,7 +93,7 @@
9393
```xml
9494
<properties>
9595
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
96-
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
96+
<quarkus.platform.version>3.1.0.Final</quarkus.platform.version>
9797
</properties>
9898
<build>
9999
<plugins>

rules/rules-reviewed/quarkus/java-ee/jaxrs-to-quarkus.windup.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<perform>
2222
<hint title="Replace JAX-RS dependency" effort="1" category-id="mandatory">
2323
<message>
24-
Dependency `org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec` has to be replaced with `io.quarkus:quarkus-resteasy` artifact.
24+
Dependency `org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec` has to be replaced with `io.quarkus:quarkus-resteasy-reactive` artifact.
2525
</message>
26-
<link title="Quarkus - Guide" href="https://quarkus.io/guides/resteasy" />
26+
<link title="Quarkus - Guide" href="https://quarkus.io/guides/resteasy-reactive" />
2727
</hint>
2828
</perform>
2929
</rule>
@@ -34,9 +34,9 @@
3434
<perform>
3535
<hint title="Replace JAX-RS dependency" effort="1" category-id="mandatory">
3636
<message>
37-
Dependency `javax.ws.rs:javax.ws.rs-api` has to be replaced with `io.quarkus:quarkus-resteasy` artifact.
37+
Dependency `javax.ws.rs:javax.ws.rs-api` has to be replaced with `io.quarkus:quarkus-resteasy-reactive` artifact.
3838
</message>
39-
<link title="Quarkus - Guide" href="https://quarkus.io/guides/resteasy" />
39+
<link title="Quarkus - Guide" href="https://quarkus.io/guides/resteasy-reactive" />
4040
</hint>
4141
</perform>
4242
</rule>

rules/rules-reviewed/quarkus/java-ee/tests/data/helloworld-rs-migrated/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<properties>
4545
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
4646
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
47-
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
47+
<quarkus.platform.version>3.1.0.Final</quarkus.platform.version>
4848
<skipITs>true</skipITs>
4949
<surefire-plugin.version>3.0.0</surefire-plugin.version>
5050
<compiler-plugin.version>3.10.1</compiler-plugin.version>
@@ -80,7 +80,7 @@
8080

8181
<dependency>
8282
<groupId>io.quarkus</groupId>
83-
<artifactId>quarkus-resteasy</artifactId>
83+
<artifactId>quarkus-resteasy-reactive</artifactId>
8484
</dependency>
8585

8686
</dependencies>

rules/rules-reviewed/quarkus/java-ee/tests/javaee-api-to-quarkus.windup.test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<when>
1212
<not>
1313
<iterable-filter size="1">
14-
<hint-exists message="At least one Java class importing from the `javax.ws.rs` package has been found so the dependency `javax:javaee-api` has to be replaced with `io.quarkus:quarkus-resteasy` artifact."/>
14+
<hint-exists message="At least one Java class importing from the `javax.ws.rs` package has been found so the dependency `javax:javaee-api` has to be replaced with `io.quarkus:quarkus-resteasy-reactive` artifact."/>
1515
</iterable-filter>
1616
</not>
1717
</when>

rules/rules-reviewed/quarkus/java-ee/tests/jaxrs-to-quarkus.windup.test.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<when>
1212
<not>
1313
<iterable-filter size="1">
14-
<hint-exists message="Dependency `org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec` has to be replaced with `io.quarkus:quarkus-resteasy` artifact."/>
14+
<hint-exists message="Dependency `org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.1_spec` has to be replaced with `io.quarkus:quarkus-resteasy-reactive` artifact."/>
1515
</iterable-filter>
1616
</not>
1717
</when>
@@ -23,7 +23,7 @@
2323
<when>
2424
<not>
2525
<iterable-filter size="1">
26-
<hint-exists message="Dependency `javax.ws.rs:javax.ws.rs-api` has to be replaced with `io.quarkus:quarkus-resteasy` artifact."/>
26+
<hint-exists message="Dependency `javax.ws.rs:javax.ws.rs-api` has to be replaced with `io.quarkus:quarkus-resteasy-reactive` artifact."/>
2727
</iterable-filter>
2828
</not>
2929
</when>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<technology-reference-transfomers xmlns="http://windup.jboss.org/schema/jboss-ruleset">
3+
<transform>
4+
<sourceTechnology id="quarkus3"/>
5+
<targetTechnology id="quarkus"/>
6+
</transform>
7+
<transform>
8+
<sourceTechnology id="quarkus3"/>
9+
<targetTechnology id="jakarta-ee"/>
10+
</transform>
11+
</technology-reference-transfomers>

0 commit comments

Comments
 (0)