[
https://issues.apache.org/jira/browse/CAMEL-21527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151674#comment-18151674
]
Claus Ibsen commented on CAMEL-21527:
-------------------------------------
Done in camel-upgrade-recipes: the `camel-spring-boot-upgrade-recipes` module
(commit 36347875c7, "Create a core
module and a spring boot module (#18)") ships a
`CamelSpringBootMigrationRecipe` per release. `latest.yaml`
upgrades the Camel Spring Boot BOM and starters, Spring Boot and Spring
Framework, and chains all the Camel
recipes; there is also a 4.18 LTS variant. The README shows the
`rewrite-maven-plugin` command line. Closing.
_Claude Code on behalf of davsclaus_
> camel-upgrade-recipes: create a Camel Spring Boot recipe
> --------------------------------------------------------
>
> Key: CAMEL-21527
> URL: https://issues.apache.org/jira/browse/CAMEL-21527
> Project: Camel
> Issue Type: New Feature
> Components: upgrade-recipes
> Affects Versions: 4.8.0
> Reporter: Federico Mariani
> Priority: Major
> Fix For: 4.x
>
>
> A recipe for Camel Spring Boot users can be added with the following features:
> - Upgrade to the Spring Boot version supported by Camel via
> UpgradeSpringBoot_3_3
> - Upgrade the camel-spring-boot-bom version to the latest released
> - provide all the Camel recipes in one place
> For example, a recipe for Camel Spring Boot 4.8 would be like this:
> {code:yaml}
> ---
> type: specs.openrewrite.org/v1beta/recipe
> name: org.apache.camel.upgrade.camel48.CamelSpringBootMigrationRecipe
> displayName: Migrates `camel Spring Boot` application to `Camel Spring Boot
> 4.8`
> description: Migrates `camel Spring Boot` application to `Camel Spring Boot
> 4.8`
> recipeList:
> - org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3
> - org.apache.camel.upgrade.camel47.CamelMigrationRecipe
> - org.apache.camel.upgrade.camel46.CamelMigrationRecipe
> - org.apache.camel.upgrade.camel45.CamelMigrationRecipe
> - org.apache.camel.upgrade.camel44.CamelMigrationRecipe
> - org.apache.camel.upgrade.camel40.CamelMigrationRecipe
> - org.openrewrite.maven.UpgradeDependencyVersion:
> groupId: '*camel*'
> artifactId: 'camel-spring-boot-bom'
> newVersion: 4.8.0
> {code}
> once we ship a recipe like this, the following configuration can be used in
> the pom.xml openrewrite plugin section:
> {code:xml}
> <plugin>
> <groupId>org.openrewrite.maven</groupId>
> <artifactId>rewrite-maven-plugin</artifactId>
> <version>5.46.1</version>
> <configuration>
> <exportDatatables>true</exportDatatables>
> <activeRecipes>
>
> <recipe>org.apache.camel.upgrade.camel48.CamelSpringBootMigrationRecipe</recipe>
> </activeRecipes>
> </configuration>
> <dependencies>
> <dependency>
> <groupId>org.openrewrite.recipe</groupId>
> <artifactId>rewrite-spring</artifactId>
> <version>5.24.1</version>
> </dependency>
> <dependency>
> <groupId>org.apache.camel.upgrade</groupId>
> <artifactId>camel-upgrade-recipes</artifactId>
> <version>4.8.0</version>
> </dependency>
> </dependencies>
> </plugin>
> {code}
> In this case, rewrite-spring:5.24.1 will do the upgrade to the Spring Boot
> version supported by Camel 4.8.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)