From fb2fc31cdd76c8bac875e7be60eeab95294f124e Mon Sep 17 00:00:00 2001 From: John Niang Date: Fri, 23 May 2025 12:22:12 +0800 Subject: [PATCH] Bump Spring Boot to 3.5.0 (#7467) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /kind improvement /area core /milestone 2.21.x #### What this PR does / why we need it: This PR bumps Spring Boot to [3.5.0](https://github.com/spring-projects/spring-boot/releases/tag/v3.5.0). #### Does this PR introduce a user-facing change? ```release-note 升级依赖 Spring Boot 至 3.5.0 ``` --- api/build.gradle | 10 ++++++---- application/build.gradle | 2 ++ application/src/main/resources/application.yaml | 7 ++++++- gradle/libs.versions.toml | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index 535a043af..beb68f901 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -14,16 +14,16 @@ tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } +tasks.withType(Javadoc).configureEach { + options.encoding = 'UTF-8' +} + java { toolchain { languageVersion = JavaLanguageVersion.of(21) } } -compileJava.options.encoding = "UTF-8" -compileTestJava.options.encoding = "UTF-8" -javadoc.options.encoding = "UTF-8" - repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } @@ -95,6 +95,8 @@ dependencies { testImplementation 'org.springframework.boot:spring-boot-starter-test' testImplementation 'org.springframework.security:spring-security-test' testImplementation 'io.projectreactor:reactor-test' + + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' } java { diff --git a/application/build.gradle b/application/build.gradle index 5ee431b68..e0bea8a00 100644 --- a/application/build.gradle +++ b/application/build.gradle @@ -91,6 +91,8 @@ dependencies { testImplementation 'org.springframework.security:spring-security-test' testImplementation 'io.projectreactor:reactor-test' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' + annotationProcessor 'com.github.therapi:therapi-runtime-javadoc-scribe' // webjars diff --git a/application/src/main/resources/application.yaml b/application/src/main/resources/application.yaml index 0728a2707..789f445ca 100644 --- a/application/src/main/resources/application.yaml +++ b/application/src/main/resources/application.yaml @@ -74,8 +74,13 @@ management: include: "*" endpoint: shutdown: - enabled: true + access: unrestricted + heapdump: + access: unrestricted health: + show-details: when-authorized + show-components: when-authorized + roles: super-role probes: enabled: true info: diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7c2e553cc..e63503465 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -39,7 +39,7 @@ apache = ['apache-commons-lang3', 'apache-tika-core'] therapi = ['therapi-runtime-javadoc', 'therapi-runtime-javadoc-scribe'] [plugins] -spring-boot = 'org.springframework.boot:3.4.5' +spring-boot = 'org.springframework.boot:3.5.0' spring-dependency-management = 'io.spring.dependency-management:1.1.7' git-properties = 'com.gorylenko.gradle-git-properties:2.5.0' undercouch-download = 'de.undercouch.download:5.6.0'