Migrate to Spring Boot 4.1

Proprietary

Migrate applications to the latest Spring Boot 4.1 release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework, Spring Data, etc) that are required as part of the migration to Spring Boot 4.1.

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

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 to Spring Boot 4.0
  2. Spring Boot 4.1 type relocations
  3. Migrate embedded Derby to H2
  4. Migrate to Java 21 when using jOOQ
  5. Migrate Spring Boot properties to 4.1
  6. Migrate layertools jarmode to tools
  7. Comment out deprecated DevTools LiveReload properties
  8. Preserve Reactor HTTP client defaults when upgrading to Spring Boot 4.1
  9. Simplify null checks on Optional @ConfigurationProperties parameters
  10. Migrate to Spring Kafka 4.1
  11. Migrate to Kafka 4.2
  12. Migrate to Hibernate 7.4.x
  13. Add @ProjectedPayload to web projection interfaces
  14. Migrate RestTemplate to RestClient
  15. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:4.1.x
  16. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:4.1.x
  17. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:4.1.x
  18. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:4.1.x
  19. Update a Gradle plugin by id org.springframework.boot
  20. Migrate to Spring Boot 4.1 modular starters
  21. Migrate to Spring gRPC 1.1 (Spring Boot 4.1)
  22. Update a Gradle plugin by id org.jetbrains.kotlin.*
  23. Upgrade Maven plugin version org.jetbrains.kotlin:kotlin-maven-plugin:2.3.x
  24. Upgrade Gradle or Maven dependency versions org.jetbrains.kotlin:*:2.3.x
  25. Sync Gradle ext properties with BOM