Skip to content

Commit ec4390b

Browse files
authored
Merge branch 'spring-projects:main' into main
2 parents 2b29df5 + d2bdf11 commit ec4390b

File tree

9,286 files changed

+78828
-30692
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,286 files changed

+78828
-30692
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
java-version:
2020
description: 'Java version to compile and test with'
2121
required: false
22-
default: '17'
22+
default: '24'
2323
publish:
2424
description: 'Whether to publish artifacts ready for deployment to Artifactory'
2525
required: false

.github/actions/create-github-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
using: composite
1616
steps:
1717
- name: Generate Changelog
18-
uses: spring-io/github-changelog-generator@185319ad7eaa75b0e8e72e4b6db19c8b2cb8c4c1 #v0.0.11
18+
uses: spring-io/github-changelog-generator@86958813a62af8fb223b3fd3b5152035504bcb83 #v0.0.12
1919
with:
2020
config-file: .github/actions/create-github-release/changelog-generator.yml
2121
milestone: ${{ inputs.milestone }}

.github/actions/prepare-gradle-build/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
java-version:
2020
description: 'Java version to use for the build'
2121
required: false
22-
default: '17'
22+
default: '24'
2323
runs:
2424
using: composite
2525
steps:
@@ -30,8 +30,9 @@ runs:
3030
java-version: |
3131
${{ inputs.java-early-access == 'true' && format('{0}-ea', inputs.java-version) || inputs.java-version }}
3232
${{ inputs.java-toolchain == 'true' && '17' || '' }}
33+
24
3334
- name: Set Up Gradle
34-
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
35+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
3536
with:
3637
cache-read-only: false
3738
develocity-access-key: ${{ inputs.develocity-access-key }}

.github/actions/sync-to-maven-central/action.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
name: Sync to Maven Central
22
description: 'Syncs a release to Maven Central and waits for it to be available for use'
33
inputs:
4-
jfrog-cli-config-token:
5-
description: 'Config token for the JFrog CLI'
6-
required: true
7-
ossrh-s01-staging-profile:
8-
description: 'Staging profile to use when syncing to Central'
4+
central-token-password:
5+
description: 'Password for authentication with central.sonatype.com'
96
required: true
10-
ossrh-s01-token-password:
11-
description: 'Password for authentication with s01.oss.sonatype.org'
7+
central-token-username:
8+
description: 'Username for authentication with central.sonatype.com'
129
required: true
13-
ossrh-s01-token-username:
14-
description: 'Username for authentication with s01.oss.sonatype.org'
10+
jfrog-cli-config-token:
11+
description: 'Config token for the JFrog CLI'
1512
required: true
1613
spring-framework-version:
1714
description: 'Version of Spring Framework that is being synced to Central'
@@ -27,16 +24,10 @@ runs:
2724
shell: bash
2825
run: jf rt download --spec ${{ format('{0}/artifacts.spec', github.action_path) }} --spec-vars 'buildName=${{ format('spring-framework-{0}', inputs.spring-framework-version) }};buildNumber=${{ github.run_number }}'
2926
- name: Sync
30-
uses: spring-io/nexus-sync-action@42477a2230a2f694f9eaa4643fa9e76b99b7ab84 # v0.0.1
27+
uses: spring-io/central-publish-action@0cdd90d12e6876341e82860d951e1bcddc1e51b6 # v0.2.0
3128
with:
32-
close: true
33-
create: true
34-
generate-checksums: true
35-
password: ${{ inputs.ossrh-s01-token-password }}
36-
release: true
37-
staging-profile-name: ${{ inputs.ossrh-s01-staging-profile }}
38-
upload: true
39-
username: ${{ inputs.ossrh-s01-token-username }}
29+
token: ${{ inputs.central-token-password }}
30+
token-name: ${{ inputs.central-token-username }}
4031
- name: Await
4132
uses: ./.github/actions/await-http-resource
4233
with:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
toolchain: false
2121
- version: 21
2222
toolchain: true
23-
- version: 23
23+
- version: 24
2424
toolchain: true
2525
exclude:
2626
- os:

.github/workflows/release-milestone.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,9 @@ jobs:
6161
- name: Sync to Maven Central
6262
uses: ./.github/actions/sync-to-maven-central
6363
with:
64+
central-token-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
65+
central-token-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
6466
jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }}
65-
ossrh-s01-staging-profile: ${{ secrets.OSSRH_S01_STAGING_PROFILE }}
66-
ossrh-s01-token-password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
67-
ossrh-s01-token-username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
6867
spring-framework-version: ${{ needs.build-and-stage-release.outputs.version }}
6968
promote-release:
7069
name: Promote Release

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ jobs:
6060
- name: Sync to Maven Central
6161
uses: ./.github/actions/sync-to-maven-central
6262
with:
63+
central-token-password: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
64+
central-token-username: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
6365
jfrog-cli-config-token: ${{ secrets.JF_ARTIFACTORY_SPRING }}
64-
ossrh-s01-staging-profile: ${{ secrets.OSSRH_S01_STAGING_PROFILE }}
65-
ossrh-s01-token-password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
66-
ossrh-s01-token-username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
6766
spring-framework-version: ${{ needs.build-and-stage-release.outputs.version }}
6867
promote-release:
6968
name: Promote Release

.github/workflows/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
distribution: 'liberica'
4747
java-version: 17
4848
- name: Set Up Gradle
49-
uses: gradle/actions/setup-gradle@0bdd871935719febd78681f197cd39af5b6e16a6 # v4.2.2
49+
uses: gradle/actions/setup-gradle@ac638b010cf58a27ee6c972d7336334ccaf61c96 # v4.4.1
5050
with:
5151
cache-read-only: false
5252
- name: Configure Gradle Properties

.sdkmanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Enable auto-env through the sdkman_auto_env config
22
# Add key=value pairs of SDKs to use below
3-
java=23.0.1-librca
3+
java=24.0.2-librca

build.gradle

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
plugins {
2-
id 'io.freefair.aspectj' version '8.4' apply false
2+
id 'io.freefair.aspectj' version '8.13.1' apply false
33
// kotlinVersion is managed in gradle.properties
44
id 'org.jetbrains.kotlin.plugin.serialization' version "${kotlinVersion}" apply false
5-
id 'org.jetbrains.dokka' version '1.9.20'
5+
id 'org.jetbrains.dokka'
66
id 'com.github.bjornvester.xjc' version '1.8.2' apply false
77
id 'io.github.goooler.shadow' version '8.1.8' apply false
88
id 'me.champeau.jmh' version '0.7.2' apply false
9-
id "net.ltgt.errorprone" version "4.1.0" apply false
9+
id 'io.spring.nullability' version '0.0.4' apply false
1010
}
1111

1212
ext {
@@ -21,13 +21,6 @@ configure(allprojects) { project ->
2121
group = "org.springframework"
2222
repositories {
2323
mavenCentral()
24-
maven {
25-
url = "https://repo.spring.io/milestone"
26-
content {
27-
// Netty 5 optional support
28-
includeGroup 'io.projectreactor.netty'
29-
}
30-
}
3124
if (version.contains('-')) {
3225
maven { url = "https://repo.spring.io/milestone" }
3326
}
@@ -64,41 +57,35 @@ configure([rootProject] + javaProjects) { project ->
6457
apply from: "${rootDir}/gradle/ide.gradle"
6558

6659
dependencies {
67-
testImplementation("org.junit.jupiter:junit-jupiter-api")
68-
testImplementation("org.junit.jupiter:junit-jupiter-params")
69-
testImplementation("org.junit.platform:junit-platform-suite-api")
60+
testImplementation("org.junit.jupiter:junit-jupiter")
61+
testImplementation("org.junit.platform:junit-platform-suite")
7062
testImplementation("org.mockito:mockito-core")
7163
testImplementation("org.mockito:mockito-junit-jupiter")
7264
testImplementation("io.mockk:mockk")
7365
testImplementation("org.assertj:assertj-core")
74-
// Pull in the latest JUnit 5 Launcher API to ensure proper support in IDEs.
75-
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
7666
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
77-
testRuntimeOnly("org.junit.platform:junit-platform-suite-engine")
7867
testRuntimeOnly("org.apache.logging.log4j:log4j-core")
7968
}
8069

8170
ext.javadocLinks = [
8271
"https://docs.oracle.com/en/java/javase/17/docs/api/",
8372
"https://jakarta.ee/specifications/platform/11/apidocs/",
8473
"https://docs.jboss.org/hibernate/orm/5.6/javadocs/",
85-
"https://eclipse.dev/aspectj/doc/latest/runtime-api/",
8674
"https://www.quartz-scheduler.org/api/2.3.0/",
87-
"https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/",
75+
"https://hc.apache.org/httpcomponents-client-5.5.x/current/httpclient5/apidocs/",
8876
"https://projectreactor.io/docs/test/release/api/",
8977
"https://junit.org/junit4/javadoc/4.13.2/",
90-
// TODO Uncomment link to JUnit 5 docs once we execute Gradle with Java 18+.
91-
// See https://github.com/spring-projects/spring-framework/issues/27497
92-
//
93-
// "https://junit.org/junit5/docs/5.12.0/api/",
78+
"https://docs.junit.org/5.13.4/api/",
9479
"https://www.reactive-streams.org/reactive-streams-1.0.3-javadoc/",
9580
//"https://javadoc.io/static/io.rsocket/rsocket-core/1.1.1/",
9681
"https://r2dbc.io/spec/1.0.0.RELEASE/api/",
9782
// Previously there could be a split-package issue between JSR250 and JSR305 javax.annotation packages,
9883
// but since 6.0 JSR 250 annotations such as @Resource and @PostConstruct have been replaced by their
9984
// JakartaEE equivalents in the jakarta.annotation package.
10085
//"https://www.javadoc.io/doc/com.google.code.findbugs/jsr305/3.0.2/",
101-
"https://jspecify.dev/docs/api/"
86+
"https://jspecify.dev/docs/api/",
87+
"https://www.javadoc.io/doc/tools.jackson.core/jackson-databind/3.0.0-rc4/"
88+
10289
] as String[]
10390
}
10491

0 commit comments

Comments
 (0)