Skip to content

Commit b0b2bfa

Browse files
committed
Depend on Spring Boot starters
See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-4.0-Migration-Guide#module-dependencies This updates both the sample applications and the dependency examples in the documentation. Signed-off-by: Johan Kaving <johan@kaving.se>
1 parent c7f564e commit b0b2bfa

9 files changed

Lines changed: 12 additions & 17 deletions

File tree

spring-session-docs/modules/ROOT/pages/guides/boot-jdbc.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ If you use Maven, you must add the following dependencies:
2626
<!-- ... -->
2727
2828
<dependency>
29-
<groupId>org.springframework.session</groupId>
30-
<artifactId>spring-session-jdbc</artifactId>
29+
<groupId>org.springframework.boot</groupId>
30+
<artifactId>spring-boot-starter-session-jdbc</artifactId>
3131
</dependency>
3232
</dependencies>
3333
----

spring-session-docs/modules/ROOT/pages/guides/boot-redis.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ We assume you are working with a working Spring Boot web application.
2525
<!-- ... -->
2626
2727
<dependency>
28-
<groupId>org.springframework.session</groupId>
29-
<artifactId>spring-session-data-redis</artifactId>
28+
<groupId>org.springframework.boot</groupId>
29+
<artifactId>spring-boot-starter-session-data-redis</artifactId>
3030
</dependency>
3131
</dependencies>
3232
----
3333
3434
.build.gradle
3535
[source,groovy,role="secondary"]
3636
----
37-
implementation("org.springframework.session:spring-session-data-redis")
37+
implementation("org.springframework.boot:spring-boot-starter-session-data-redis")
3838
----
3939
====
4040

spring-session-samples/spring-session-sample-boot-findbyusername/spring-session-sample-boot-findbyusername.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ dependencies {
77
implementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
88
implementation "org.apache.httpcomponents:httpclient"
99
implementation "org.springframework.boot:spring-boot-devtools"
10-
implementation "org.springframework.boot:spring-boot-session-data-redis"
11-
implementation "org.springframework.boot:spring-boot-starter-data-redis"
10+
implementation "org.springframework.boot:spring-boot-starter-session-data-redis"
1211
implementation "org.springframework.boot:spring-boot-starter-security"
1312
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
1413
implementation "org.springframework.boot:spring-boot-starter-web"

spring-session-samples/spring-session-sample-boot-jdbc-json-attribute/spring-session-sample-boot-jdbc-json-attribute.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ dependencies {
44
management platform(project(":spring-session-dependencies"))
55
implementation project(':spring-session-jdbc')
66
implementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
7-
implementation "org.springframework.boot:spring-boot-session-jdbc"
87
implementation libs.jackson.databind
9-
implementation "org.springframework.boot:spring-boot-starter-jdbc"
8+
implementation "org.springframework.boot:spring-boot-starter-session-jdbc"
109
implementation "org.springframework.boot:spring-boot-starter-security"
1110
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
1211
implementation "org.springframework.boot:spring-boot-starter-web"

spring-session-samples/spring-session-sample-boot-jdbc/spring-session-sample-boot-jdbc.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies {
77
implementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
88
implementation "org.springframework.boot:spring-boot-devtools"
99
implementation "org.springframework.boot:spring-boot-h2console"
10-
implementation "org.springframework.boot:spring-boot-session-jdbc"
10+
implementation "org.springframework.boot:spring-boot-starter-session-jdbc"
1111
implementation "org.springframework.boot:spring-boot-starter-security"
1212
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
1313
implementation "org.springframework.boot:spring-boot-starter-web"

spring-session-samples/spring-session-sample-boot-reactive-max-sessions/spring-session-sample-boot-reactive-max-sessions.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'io.spring.convention.spring-sample-boot'
22

33
dependencies {
44
management platform(project(":spring-session-dependencies"))
5-
implementation 'org.springframework.boot:spring-boot-session-data-redis'
5+
implementation 'org.springframework.boot:spring-boot-starter-session-data-redis'
66
implementation 'org.springframework.boot:spring-boot-starter-data-redis-reactive'
77
implementation 'org.springframework.boot:spring-boot-starter-security'
88
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

spring-session-samples/spring-session-sample-boot-redis-json/spring-session-sample-boot-redis-json.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ dependencies {
55
implementation project(':spring-session-data-redis')
66
implementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
77
implementation "org.springframework.boot:spring-boot-devtools"
8-
implementation "org.springframework.boot:spring-boot-session-data-redis"
9-
implementation "org.springframework.boot:spring-boot-starter-data-redis"
8+
implementation "org.springframework.boot:spring-boot-starter-session-data-redis"
109
implementation "org.springframework.boot:spring-boot-starter-security"
1110
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
1211
implementation "org.springframework.boot:spring-boot-starter-web"

spring-session-samples/spring-session-sample-boot-redis/spring-session-sample-boot-redis.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ dependencies {
55
implementation project(':spring-session-data-redis')
66
implementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
77
implementation "org.springframework.boot:spring-boot-devtools"
8-
implementation "org.springframework.boot:spring-boot-session-data-redis"
9-
implementation "org.springframework.boot:spring-boot-starter-data-redis"
8+
implementation "org.springframework.boot:spring-boot-starter-session-data-redis"
109
implementation "org.springframework.boot:spring-boot-starter-security"
1110
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
1211
implementation "org.springframework.boot:spring-boot-starter-web"

spring-session-samples/spring-session-sample-boot-websocket/spring-session-sample-boot-websocket.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ dependencies {
55
implementation project(':spring-session-data-redis')
66
implementation "nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect"
77
implementation "org.springframework.boot:spring-boot-devtools"
8-
implementation "org.springframework.boot:spring-boot-session-data-redis"
8+
implementation "org.springframework.boot:spring-boot-starter-session-data-redis"
99
implementation "org.springframework.boot:spring-boot-starter-data-jpa"
10-
implementation "org.springframework.boot:spring-boot-starter-data-redis"
1110
implementation "org.springframework.boot:spring-boot-starter-security"
1211
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
1312
implementation "org.springframework.boot:spring-boot-starter-validation"

0 commit comments

Comments
 (0)