From 7fec76278d9b8f09bbecf7d368061df72c910a15 Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 7 Aug 2024 08:31:46 -0400 Subject: [PATCH] Fix #457: Refactor javax.annotation to ChangePackage --- .../META-INF/rewrite/jakarta-ee-9.yml | 73 +------------------ 1 file changed, 4 insertions(+), 69 deletions(-) diff --git a/src/main/resources/META-INF/rewrite/jakarta-ee-9.yml b/src/main/resources/META-INF/rewrite/jakarta-ee-9.yml index c90537a59d..80c872c1ea 100644 --- a/src/main/resources/META-INF/rewrite/jakarta-ee-9.yml +++ b/src/main/resources/META-INF/rewrite/jakarta-ee-9.yml @@ -110,76 +110,11 @@ recipeList: newGroupId: jakarta.annotation newArtifactId: jakarta.annotation-api newVersion: latest.release - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.Generated - newFullyQualifiedTypeName: jakarta.annotation.Generated - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.ManagedBean - newFullyQualifiedTypeName: jakarta.annotation.ManagedBean - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.Nonnull - newFullyQualifiedTypeName: jakarta.annotation.Nonnull - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.Nullable - newFullyQualifiedTypeName: jakarta.annotation.Nullable - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.PostConstruct - newFullyQualifiedTypeName: jakarta.annotation.PostConstruct - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.PreDestroy - newFullyQualifiedTypeName: jakarta.annotation.PreDestroy - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.Priority - newFullyQualifiedTypeName: jakarta.annotation.Priority - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.Resource - newFullyQualifiedTypeName: jakarta.annotation.Resource - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.Resources - newFullyQualifiedTypeName: jakarta.annotation.Resources - - org.openrewrite.java.migrate.jakarta.JavaxAnnotationSecurityPackageToJakarta - - org.openrewrite.java.migrate.jakarta.JavaxAnnotationSqlPackageToJakarta - ---- -type: specs.openrewrite.org/v1beta/recipe -name: org.openrewrite.java.migrate.jakarta.JavaxAnnotationSecurityPackageToJakarta -displayName: Migrate deprecated `javax.annotation.security` packages to `jakarta.annotation.security` -description: Change type of classes in the `javax.annotation.security` package to jakarta. -tags: - - javax - - jakarta -recipeList: - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.security.DeclareRoles - newFullyQualifiedTypeName: jakarta.annotation.security.DeclareRoles - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.security.DenyAll - newFullyQualifiedTypeName: jakarta.annotation.security.DenyAll - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.security.PermitAll - newFullyQualifiedTypeName: jakarta.annotation.security.PermitAll - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.security.RolesAllowed - newFullyQualifiedTypeName: jakarta.annotation.security.RolesAllowed - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.security.RunAs - newFullyQualifiedTypeName: jakarta.annotation.security.RunAs + - org.openrewrite.java.ChangePackage: + oldPackageName: javax.annotation + newPackageName: jakarta.annotation + recursive: true ---- -type: specs.openrewrite.org/v1beta/recipe -name: org.openrewrite.java.migrate.jakarta.JavaxAnnotationSqlPackageToJakarta -displayName: Migrate deprecated `javax.annotation.sql` packages to `jakarta.annotation.sql` -description: Change type of classes in the `javax.annotation.sql` package to jakarta. -tags: - - javax - - jakarta -recipeList: - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.sql.DataSourceDefinition - newFullyQualifiedTypeName: jakarta.annotation.sql.DataSourceDefinition - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.sql.DataSourceDefinitions - newFullyQualifiedTypeName: jakarta.annotation.sql.DataSourceDefinitions --- type: specs.openrewrite.org/v1beta/recipe