Skip to content

Commit

Permalink
Add migration from javax.servlet.servlet-api to javax.servlet.javax.s…
Browse files Browse the repository at this point in the history
…ervlet-api (#656)
  • Loading branch information
Laurens-W authored Jan 6, 2025
1 parent f759f8a commit 8c04880
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/resources/META-INF/rewrite/java-ee-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ tags:
- javaee8
- deprecated
recipeList:
- org.openrewrite.java.dependencies.ChangeDependency:
oldGroupId: javax.servlet
oldArtifactId: servlet-api
newGroupId: javax.servlet
newArtifactId: javax.servlet-api
newVersion: 3.x
- org.openrewrite.java.migrate.javaee7
- org.openrewrite.java.migrate.javaee8.ServletIsRequestedSessionIdFromURL
- org.openrewrite.java.migrate.javaee8.ApacheDefaultProvider
Expand All @@ -42,8 +48,8 @@ type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.migrate.javaee8.ApacheDefaultProvider
displayName: Flags any `org.apache.bval.jsr*` (bval 1.1) and `org.apache.bval.jsr303*` (bval 1.0) package references
description: >-
This recipe flags any `org.apache.bval.jsr*` (bval 1.1) and `org.apache.bval.jsr303*` (bval 1.0) package references in validation.xml deployment descriptors.
Bean Validation 2.0 and later use the Hibernate Validator implementation instead of the
This recipe flags any `org.apache.bval.jsr*` (bval 1.1) and `org.apache.bval.jsr303*` (bval 1.0) package references in validation.xml deployment descriptors.
Bean Validation 2.0 and later use the Hibernate Validator implementation instead of the
Apache BVal implementation which was used for Bean Validation 1.0 and 1.1.
recipeList:
- org.openrewrite.xml.ChangeTagValue:
Expand All @@ -60,4 +66,3 @@ recipeList:
newValue: org.hibernate.validator.engine.ConstraintValidatorFactoryImpl
- org.openrewrite.xml.RemoveXmlTag:
xPath: /validation-config/parameter-name-provider

0 comments on commit 8c04880

Please sign in to comment.