diff --git a/src/main/resources/META-INF/rewrite/spring-framework-51.yml b/src/main/resources/META-INF/rewrite/spring-framework-51.yml index 4ce5a5da..9920ffe3 100644 --- a/src/main/resources/META-INF/rewrite/spring-framework-51.yml +++ b/src/main/resources/META-INF/rewrite/spring-framework-51.yml @@ -32,3 +32,7 @@ recipeList: artifactId: "*" newVersion: 5.1.x overrideManagedVersion: false + - org.openrewrite.java.ChangeType: + oldFullyQualifiedTypeName: org.springframework.beans.factory.annotation.Required + newFullyQualifiedTypeName: org.springframework.beans.factory.annotation.Autowired + ignoreDefinition: true