Migrate spring-retry to Spring Resilience
ProprietaryMigrate spring-retry, which Spring Boot 4 no longer manages, to Spring Framework 7's resilience support and remove it. Usages without a Spring Framework 7 equivalent move to a generated SpringRetryCompat class.
io. moderne. java. spring. boot4. MigrateSpringRetrymod run . --recipe= io. moderne. java. spring. boot4. MigrateSpringRetryInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Inline
maxAttemptsExpressionconstants ahead of the Spring Framework 7 migration - Migrate
@Retryable(recover=...)+@Recoverto programmaticRetryTemplate - Migrate
spring-retryto Spring Framework resilience - Migrate imperative
spring-retryusage to Spring Framework 7 - Remove spring-retry once nothing references it
- Remove the orphaned
spring-retryversion pin