Skip to content

Commit 038224b

Browse files
committed
Update spring-boot2-upgrade-version.yml to clearly match the associated spring-boot release notes for 2.5 by moving the ChangeType declarative recipe for EntityManagerFactoryDependsOnPostProcessor into the 2.5 migration recipe.
1 parent 719bee6 commit 038224b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/main/resources/META-INF/rewrite/spring-boot2-upgrade-version.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -235,19 +235,13 @@ recipeList:
235235
# Use recommended replacements for deprecated APIs
236236
- org.openrewrite.java.spring.boot2.MigrateEntityManagerFactoryDependsOnPostProcessorCustomizerPackageName
237237
- org.openrewrite.java.spring.boot2.MigrateActuatorMediaTypeToApiVersion
238+
- org.openrewrite.java.ChangeType:
239+
oldFullyQualifiedTypeName: org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessor
240+
newFullyQualifiedTypeName: org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor
238241

239242
# Update properties
240243
- org.openrewrite.java.spring.boot2.SpringBootProperties_2_5
241244
- org.openrewrite.java.spring.boot2.SpringBootPropertiesManual_2_5
242245

243246
# Initialization ordering
244247
- org.openrewrite.java.spring.boot2.DatabaseComponentAndBeanInitializationOrdering
245-
---
246-
type: specs.openrewrite.org/v1beta/recipe
247-
name: org.openrewrite.java.spring.boot2.MigrateEntityManagerFactoryDependsOnPostProcessorCustomizerPackageName
248-
displayName: Use `EntityManagerFactoryDependsOnPostProcessor`
249-
description: '`org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessor` was deprecated in 2.5 for removal in 2.7.'
250-
recipeList:
251-
- org.openrewrite.java.ChangeType:
252-
oldFullyQualifiedTypeName: org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessor
253-
newFullyQualifiedTypeName: org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor

0 commit comments

Comments
 (0)