Migrate spring-retry to Spring Resilience

Proprietary

Migrate 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.MigrateSpringRetry
mod run . --recipe=io.moderne.java.spring.boot4.MigrateSpringRetry

Install 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.

  1. Inline maxAttemptsExpression constants ahead of the Spring Framework 7 migration
  2. Migrate @Retryable(recover=...) + @Recover to programmatic RetryTemplate
  3. Migrate spring-retry to Spring Framework resilience
  4. Migrate imperative spring-retry usage to Spring Framework 7
  5. Remove spring-retry once nothing references it
  6. Remove the orphaned spring-retry version pin