Skip to content

Commit 14365cd

Browse files
committed
Add UpgradeSpringBoot_2_6 recipe along with boot/framework dependency upgrades and properties migration. Closes #177
1 parent 2380acb commit 14365cd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,26 @@ recipeList:
244244

245245
# Initialization ordering
246246
- org.openrewrite.java.spring.boot2.DatabaseComponentAndBeanInitializationOrdering
247+
248+
########################################################################################################################
249+
# SpringBoot 2.6
250+
---
251+
type: specs.openrewrite.org/v1beta/recipe
252+
name: org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_6
253+
displayName: Upgrade to Spring Boot 2.6
254+
description: 'Upgrade to Spring Boot 2.6 from any prior 2.x version.'
255+
recipeList:
256+
# Upgrade to 2.6.x from 2.5.x
257+
- org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_5
258+
# Upgrade to 2.6.x from 2.5.x
259+
- org.openrewrite.maven.UpgradeDependencyVersion:
260+
groupId: org.springframework.boot
261+
artifactId: "*"
262+
newVersion: 2.6.x
263+
trustParent: true
264+
- org.openrewrite.maven.UpgradeParentVersion:
265+
groupId: org.springframework.boot
266+
artifactId: spring-boot-starter-parent
267+
newVersion: 2.6.x
268+
# Update properties
269+
- org.openrewrite.java.spring.boot2.SpringBootProperties_2_6

0 commit comments

Comments
 (0)