Migrate to Spring Framework 6.0
MSALMigrate applications to the latest Spring Framework 6.0 release.
org. openrewrite. java. spring. framework. UpgradeSpringFramework_6_0mod run . --recipe= org. openrewrite. java. spring. framework. UpgradeSpringFramework_6_0Install 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.
- Migrate to Spring Framework 5.3
- Migrate to Jakarta EE 10
- Migrate to Hibernate 5.6.x with Jakarta Persistence
- Upgrade Gradle or Maven dependency versions
org.springframework:*:6.0.x - Migrate to Spring Kafka 3.0
- Upgrade Gradle or Maven dependency versions
org.springframework.integration:*:6.0.x - Update a Gradle plugin by id
io.spring.dependency-management - Upgrade Maven plugin version
io.spring.gradle:dependency-management-plugin:1.1.x - Migrate removed Spring
Assertmethods - Migrate to ApacheHttpClient 5.x
- Migrate
setReadTimeout(int)to SocketConfigsetSoTimeout(..) - Migrate
ResponseEntityExceptionHandlerfrom HttpStatus to HttpStatusCode - Migrate breaking changes in
ResponseStatusException - Replaces deprecated
ClientHttpResponse#getRawStatusCode() - Change method invocation return type
- Migrate to Spring Data 3.0
- Convert
JdbcTemplate.queryForLong(..)toqueryForObject(..) - Migrate
ListenableFuturetoCompletableFuture