Migrate Spring Cloud AWS (awspring) to 4.0

Proprietary

Upgrade io.awspring.cloud dependencies to 4.0.x and migrate code for the breaking API changes in Spring Cloud AWS 4.0. Spring Cloud AWS 4.0 aligns with Spring Boot 4 / Spring Framework 7 and adopts Jackson 3 by default; this recipe moves usages off the deprecated Jackson 2 variants to their Jackson 3 replacements and migrates the SQS default-converter setObjectMapper configurer. Expects user mappers to be tools.jackson JsonMappers.

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

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. Upgrade Gradle or Maven dependency versions io.awspring.cloud:*:4.0.0
  2. Change type Jackson2JsonStringEncoder to JacksonJsonStringEncoder
  3. Change type Jackson2SecretValueReader to JacksonSecretValueReader
  4. Migrate awspring SQS default converter setObjectMapper to constructor injection