Skip to content

calling declarative recipe #3350

Answered by timtebeek
raizer76 asked this question in General
Discussion options

You must be logged in to vote

Hi @raizer76 ! It sounds like you might want to do a staged upgrade of your projects; first going from v2 to v3, then from v3 to v4, etc. Would that be the correct way to phrase things?

You might be interested in how we approach that for rewrite-spring, where we have declarative recipes for each version, which chain in the previous version as the first recipe to run. See for instance this upgrade to Spring Boot 3.1:

type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1
displayName: Migrate to Spring Boot 3.1
description: 'Upgrade to Spring Boot 3.1'
tags:
  - spring
  - boot
recipeList:
  - org.openrewrite.java.spring.boot3.UpgradeSpringBo…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by timtebeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants