Migrate to Spring Boot 4.0 modular starters

Proprietary

Adds Spring Boot 4.0 modular starter dependencies based on package usage and rewrites the classic starters to the minimal spring-boot-starter / spring-boot-starter-test. The minimal starter is retained so that modules whose code only references core Spring annotations (e.g. @SpringBootApplication, @Configuration, @Component) still compile after migration.

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

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 the monolithic Spring Boot starters
  2. Add the Spring Boot 4.0 modules of the Spring Boot types in use