Migrate Spring Session Hazelcast to Hazelcast Spring Session

Proprietary

Spring Boot 4.0 removed direct support for Spring Session Hazelcast. The Hazelcast team now maintains their own Spring Session integration. This recipe changes the dependency from org.springframework.session:spring-session-hazelcast to com.hazelcast.spring:hazelcast-spring-session and updates the package from org.springframework.session.hazelcast to com.hazelcast.spring.session.

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

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. Change Gradle or Maven dependency org.springframework.session:spring-session-hazelcast
  2. Rename package name org.springframework.session.hazelcast to com.hazelcast.spring.session