Skip to content

Commit 8c04880

Browse files
authored
Add migration from javax.servlet.servlet-api to javax.servlet.javax.servlet-api (#656)
1 parent f759f8a commit 8c04880

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/main/resources/META-INF/rewrite/java-ee-8.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ tags:
2323
- javaee8
2424
- deprecated
2525
recipeList:
26+
- org.openrewrite.java.dependencies.ChangeDependency:
27+
oldGroupId: javax.servlet
28+
oldArtifactId: servlet-api
29+
newGroupId: javax.servlet
30+
newArtifactId: javax.servlet-api
31+
newVersion: 3.x
2632
- org.openrewrite.java.migrate.javaee7
2733
- org.openrewrite.java.migrate.javaee8.ServletIsRequestedSessionIdFromURL
2834
- org.openrewrite.java.migrate.javaee8.ApacheDefaultProvider
@@ -42,8 +48,8 @@ type: specs.openrewrite.org/v1beta/recipe
4248
name: org.openrewrite.java.migrate.javaee8.ApacheDefaultProvider
4349
displayName: Flags any `org.apache.bval.jsr*` (bval 1.1) and `org.apache.bval.jsr303*` (bval 1.0) package references
4450
description: >-
45-
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.
46-
Bean Validation 2.0 and later use the Hibernate Validator implementation instead of the
51+
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.
52+
Bean Validation 2.0 and later use the Hibernate Validator implementation instead of the
4753
Apache BVal implementation which was used for Bean Validation 1.0 and 1.1.
4854
recipeList:
4955
- org.openrewrite.xml.ChangeTagValue:
@@ -60,4 +66,3 @@ recipeList:
6066
newValue: org.hibernate.validator.engine.ConstraintValidatorFactoryImpl
6167
- org.openrewrite.xml.RemoveXmlTag:
6268
xPath: /validation-config/parameter-name-provider
63-

0 commit comments

Comments
 (0)