Skip to content

Commit

Permalink
Relocate Launcher classes renamed in Spring Boot 3.2 (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Jun 12, 2024
1 parent a95547f commit 82877ae
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ recipeList:
oldFullyQualifiedTypeName: org.springframework.boot.autoconfigure.transaction.PlatformTransactionManagerCustomizer
newFullyQualifiedTypeName: org.springframework.boot.autoconfigure.transaction.TransactionManagerCustomizer
- org.openrewrite.hibernate.MigrateToHibernate63
- org.openrewrite.java.spring.boot3.RelocateLauncherClasses

---
type: specs.openrewrite.org/v1beta/recipe
Expand All @@ -76,3 +77,19 @@ recipeList:
- org.openrewrite.java.spring.AddSpringProperty:
property: spring.threads.virtual.enabled
value: true

---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.RelocateLauncherClasses
displayName: Relocate Launcher Classes
description: Relocate classes that have been moved to different packages in Spring Boot 3.2.
recipeList:
- org.openrewrite.text.FindAndReplace:
find: org.springframework.boot.loader.JarLauncher
replace: org.springframework.boot.loader.launch.JarLauncher
- org.openrewrite.text.FindAndReplace:
find: org.springframework.boot.loader.PropertiesLauncher
replace: org.springframework.boot.loader.launch.PropertiesLauncher
- org.openrewrite.text.FindAndReplace:
find: org.springframework.boot.loader.WarLauncher
replace: org.springframework.boot.loader.launch.WarLauncher

0 comments on commit 82877ae

Please sign in to comment.