Migrate to Spring Modulith 2.2

Proprietary

Upgrade Spring Modulith 2.0 and 2.1 to 2.2, the release line built for Spring Boot 4.2. This recipe targets the pre-release 2.2.0-RC1 until Spring Modulith 2.2 reaches general availability. Spring Modulith 2.1 references Spring Boot's AMQP auto-configuration types, which Spring Boot 4.2 moved to org.springframework.boot.rabbitmq.autoconfigure, so an application using spring-modulith-events-amqp fails to start on Spring Boot 4.2 without this upgrade. A repository that uses only Spring Modulith 1.x is left alone, as moving it to 2.x needs its own migration.

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

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.