Skip to content

Commit 228496c

Browse files
devondragonclaude
andcommitted
Upgrade to Spring Boot 4.0.0 with Java 21
- Upgrade Spring Boot from 3.5.6 to 4.0.0 - Upgrade Java toolchain from 17 to 21 (required for Spring Boot 4) - Add Spring Boot 4 modular test dependencies: - spring-boot-data-jpa-test - spring-boot-webmvc-test - spring-boot-starter-security-test - Update ds-spring-user-framework to 4.0.0-SNAPSHOT - Remove deprecated launchScript from bootJar (removed in Spring Boot 4) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 03e7f13 commit 228496c

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

build.gradle

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '3.5.6'
3+
id 'org.springframework.boot' version '4.0.0'
44
id 'io.spring.dependency-management' version '1.1.7'
55
id "com.github.ben-manes.versions" version "0.52.0"
66

@@ -11,7 +11,7 @@ version = '1.0.1-SNAPSHOT'
1111

1212
java {
1313
toolchain {
14-
languageVersion = JavaLanguageVersion.of(17)
14+
languageVersion = JavaLanguageVersion.of(21)
1515
}
1616
}
1717

@@ -39,8 +39,8 @@ repositories {
3939

4040
dependencies {
4141
// DigitalSanctuary Spring User Framework
42-
implementation 'com.digitalsanctuary:ds-spring-user-framework:3.5.1'
43-
l
42+
implementation 'com.digitalsanctuary:ds-spring-user-framework:4.0.0-SNAPSHOT'
43+
4444
// Spring Boot starters
4545
implementation 'org.springframework.boot:spring-boot-starter-actuator'
4646
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
@@ -51,8 +51,8 @@ l
5151
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
5252
implementation 'org.springframework.boot:spring-boot-starter-web'
5353

54-
// Thymeleaf extras
55-
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.3.RELEASE'
54+
// Thymeleaf extras - Spring Boot 4 manages the version
55+
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
5656
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect:3.4.0'
5757

5858
// OpenAPI (Swagger)
@@ -78,6 +78,9 @@ l
7878

7979
// Testing dependencies
8080
testImplementation 'org.springframework.boot:spring-boot-starter-test'
81+
testImplementation 'org.springframework.boot:spring-boot-data-jpa-test'
82+
testImplementation 'org.springframework.boot:spring-boot-webmvc-test'
83+
testImplementation 'org.springframework.boot:spring-boot-starter-security-test'
8184
testImplementation 'org.springframework.security:spring-security-test'
8285
testImplementation 'com.h2database:h2:2.3.232'
8386
testImplementation 'com.codeborne:selenide:7.10.0'
@@ -112,9 +115,7 @@ tasks.register('uiTest', Test) {
112115

113116

114117
bootJar {
115-
launchScript {
116-
properties 'confFolder': '/opt/app/conf/'
117-
}
118+
// launchScript removed in Spring Boot 4 - use systemd or other init systems instead
118119
}
119120

120121
bootRun {

0 commit comments

Comments
 (0)