Migrate imperative spring-retry usage to Spring Framework 7

Proprietary

Migrate imperative spring-retry usage to Spring Framework 7's org.springframework.core.retry support. RetryTemplate configuration with an exact Spring Framework 7 equivalent, such as RetryTemplate.builder() chains and templates configured with SimpleRetryPolicy, FixedBackOffPolicy or ExponentialBackOffPolicy, becomes new RetryTemplate(RetryPolicy.builder()...build()), with spring-retry's defaults made explicit. Everything else, such as callbacks reading the RetryContext, RecoveryCallbacks, RetryListeners and policies configured elsewhere, moves to a generated SpringRetryCompat class that preserves spring-retry's semantics on top of Spring Framework 7's RetryTemplate, so that spring-retry can be removed.

io.moderne.java.spring.boot4.MigrateSpringRetryImperative
mod run . --recipe=io.moderne.java.spring.boot4.MigrateSpringRetryImperative

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. Migrate spring-retry RetryTemplate configuration to Spring Framework 7 RetryPolicy.builder()
  2. Migrate remaining spring-retry usages to a generated compatibility class