This repository contains Spring Session Maven Bill of Materials (BOM).
With Maven, you need to import the BOM first:
<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.session</groupId> <artifactId>spring-session-bom</artifactId> <version>Corn-M3</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>Notice the use of the <dependencyManagement> section and the import scope.
Next, add your dependencies to the project without a <version>:
<dependencies> <dependency> <groupId>org.springframework.session</groupId> <artifactId>spring-session-data-redis</artifactId> </dependency> </dependencies>Since Gradle has no first-class support for Maven BOMs, you can use Spring’s Dependency management plugin.
Apply the plugin from Gradle Plugin Portal (update the version if needed):
plugins { id 'io.spring.dependency-management' version '1.0.8.RELEASE' }Then use it to import the BOM:
dependencyManagement { imports { mavenBom 'org.springframework.session:spring-session-bom:Corn-M3' } }Finally, add a dependency to the project without a version:
dependencies { compile 'org.springframework.session:spring-session-data-redis' }You can find the documentation, issue management, support, samples, and guides for using Spring Session at https://projects.spring.io/spring-session/.
Spring Session is Open Source software released under the Apache 2.0 license.