Migrate to Spring Boot 4.0 modular starters

MSAL

Adds the necessary Spring Boot 4.0 starter dependencies based on package usage. Spring Boot 4.0 has a modular design requiring explicit starters for each feature. This recipe detects feature usage via package imports and adds the appropriate starters. Note: Higher-level starters (like data-jpa) include lower-level ones (like jdbc) transitively, so only the highest-level detected starter is added for each technology.

org.openrewrite.java.spring.boot4.MigrateToModularStarters
mod run . --recipe=org.openrewrite.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. Add Spring Boot 4.0 modular starter dependencies
  2. Migrate packages to modular starters