Skip to content

Commit

Permalink
jax-rs activation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
m-brophy committed Oct 10, 2023
1 parent 7cb27f3 commit 522fd83
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rules/rules-reviewed/quarkus/java-ee/jaxrs-to-quarkus.windup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,25 @@
</hint>
</perform>
</rule>
<rule id="jaxrs-to-quarkus-00020">
<when>
<and>
<javaclass references="javax.ws.rs.ApplicationPath">
<location>ANNOTATION</location>
</javaclass>
<javaclass references="javax.ws.rs.core.Application">
<location>INHERITANCE</location>
</javaclass>
</and>
</when>
<perform>
<hint title="JAX-RS activation is no longer necessary" effort="1" category-id="optional">
<message>
JAX-RS activation is no longer necessary. You can set a root path like this but you don't have to.
</message>
<link title="Quarkus - Guide" href="https://quarkus.io/guides/resteasy-reactive#declaring-endpoints-uri-mapping" />
</hint>
</perform>
</rule>
</rules>
</ruleset>
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@
<fail message="[jaxrs-to-quarkus-00010] javax.ws.rs-api dependency hint was not found!" />
</perform>
</rule>
<rule id="jaxrs-to-quarkus-00020-test">
<when>
<not>
<iterable-filter size="4">
<hint-exists message="JAX-RS activation is no longer necessary."/>
</iterable-filter>
</not>
</when>
<perform>
<fail message="[jaxrs-to-quarkus-00020] JAX-RS activation hint was not found!" />
</perform>
</rule>
</rules>
</ruleset>
</ruletest>

0 comments on commit 522fd83

Please sign in to comment.