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>2021.1.1</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>
With Gradle’s native support for Maven BOMs, import the BOM using:
dependencies {
implementation platform('org.springframework.session:spring-session-bom:2021.1.1')
}
Alternatively, you can use Spring’s Dependency management plugin.
Apply the plugin from Gradle Plugin Portal:
plugins {
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
Then use it to import the BOM:
dependencyManagement {
imports {
mavenBom 'org.springframework.session:spring-session-bom:2021.1.1'
}
}
Finally, add a dependency to the project without a version:
dependencies {
implementation 'org.springframework.session:spring-session-data-redis'
}
-
Learn the Spring Session basics - check the Spring Session project site for documentation, support, samples, and guides.
-
Ask a question - we monitor stackoverflow.com for questions tagged with
spring-session
.
If you want to raise an issue, please report it in the appropriate Spring Session project:
-
For issues in Spring Session MongoDB, use https://github.com/spring-projects/spring-session-data-mongodb
-
For issues in Spring Session for Apache Geode or VMware Tanzu GemFire please use https://github.com/spring-projects/spring-session-data-geode
-
For issues in Spring Session Data Redis, JDBC, Hazelcast or in core Spring Session please use https://github.com/spring-projects/spring-session
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to spring-code-of-conduct@pivotal.io.
Spring Session is Open Source software released under the Apache 2.0 license.