Skip to content

Commit c73e76c

Browse files
committed
Merge branch '6.1.x'
2 parents ad4f0c9 + 6b97559 commit c73e76c

File tree

16 files changed

+151
-143
lines changed

16 files changed

+151
-143
lines changed

.github/actions/await-http-resource/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Await HTTP Resource
2-
description: Waits for an HTTP resource to be available (a HEAD request succeeds)
2+
description: 'Waits for an HTTP resource to be available (a HEAD request succeeds)'
33
inputs:
44
url:
5-
description: 'The URL of the resource to await'
5+
description: 'URL of the resource to await'
66
required: true
77
runs:
88
using: composite

.github/actions/build/action.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,35 @@
11
name: 'Build'
22
description: 'Builds the project, optionally publishing it to a local deployment repository'
33
inputs:
4-
java-version:
4+
develocity-access-key:
5+
description: 'Access key for authentication with ge.spring.io'
56
required: false
6-
default: '17'
7-
description: 'The Java version to compile and test with'
8-
java-early-access:
7+
java-distribution:
8+
description: 'Java distribution to use'
99
required: false
10-
default: 'false'
10+
default: 'liberica'
11+
java-early-access:
1112
description: 'Whether the Java version is in early access'
12-
java-toolchain:
1313
required: false
1414
default: 'false'
15+
java-toolchain:
1516
description: 'Whether a Java toolchain should be used'
16-
publish:
1717
required: false
1818
default: 'false'
19+
java-version:
20+
description: 'Java version to compile and test with'
21+
required: false
22+
default: '17'
23+
publish:
1924
description: 'Whether to publish artifacts ready for deployment to Artifactory'
20-
develocity-access-key:
2125
required: false
22-
description: 'The access key for authentication with ge.spring.io'
26+
default: 'false'
2327
outputs:
2428
build-scan-url:
25-
description: 'The URL, if any, of the build scan produced by the build'
29+
description: 'URL, if any, of the build scan produced by the build'
2630
value: ${{ (inputs.publish == 'true' && steps.publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }}
2731
version:
28-
description: 'The version that was built'
32+
description: 'Version that was built'
2933
value: ${{ steps.read-version.outputs.version }}
3034
runs:
3135
using: composite
@@ -34,9 +38,10 @@ runs:
3438
uses: ./.github/actions/prepare-gradle-build
3539
with:
3640
develocity-access-key: ${{ inputs.develocity-access-key }}
37-
java-version: ${{ inputs.java-version }}
41+
java-distribution: ${{ inputs.java-distribution }}
3842
java-early-access: ${{ inputs.java-early-access }}
3943
java-toolchain: ${{ inputs.java-toolchain }}
44+
java-version: ${{ inputs.java-version }}
4045
- name: Build
4146
id: build
4247
if: ${{ inputs.publish == 'false' }}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
name: Create GitHub Release
2-
description: Create the release on GitHub with a changelog
2+
description: 'Create the release on GitHub with a changelog'
33
inputs:
44
milestone:
5-
description: Name of the GitHub milestone for which a release will be created
6-
required: true
7-
token:
8-
description: Token to use for authentication with GitHub
5+
description: 'Name of the GitHub milestone for which a release will be created'
96
required: true
107
pre-release:
11-
description: Whether the release is a pre-release (a milestone or release candidate)
8+
description: 'Whether the release is a pre-release (a milestone or release candidate)'
129
required: false
1310
default: 'false'
11+
token:
12+
description: 'Token to use for authentication with GitHub'
13+
required: true
1414
runs:
1515
using: composite
1616
steps:
1717
- name: Generate Changelog
1818
uses: spring-io/github-changelog-generator@185319ad7eaa75b0e8e72e4b6db19c8b2cb8c4c1 #v0.0.11
1919
with:
20+
config-file: .github/actions/create-github-release/changelog-generator.yml
2021
milestone: ${{ inputs.milestone }}
2122
token: ${{ inputs.token }}
22-
config-file: .github/actions/create-github-release/changelog-generator.yml
2323
- name: Create GitHub Release
24+
shell: bash
2425
env:
2526
GITHUB_TOKEN: ${{ inputs.token }}
26-
shell: bash
2727
run: gh release create ${{ format('v{0}', inputs.milestone) }} --notes-file changelog.md ${{ inputs.pre-release == 'true' && '--prerelease' || '' }}

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

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,37 @@
1-
name: 'Prepare Gradle Build'
1+
name: Prepare Gradle Build
22
description: 'Prepares a Gradle build. Sets up Java and Gradle and configures Gradle properties'
33
inputs:
4-
java-version:
4+
develocity-access-key:
5+
description: 'Access key for authentication with ge.spring.io'
56
required: false
6-
default: '17'
7-
description: 'The Java version to use for the build'
7+
java-distribution:
8+
description: 'Java distribution to use'
9+
required: false
10+
default: 'liberica'
811
java-early-access:
12+
description: 'Whether the Java version is in early access. When true, forces java-distribution to temurin'
913
required: false
1014
default: 'false'
11-
description: 'Whether the Java version is in early access'
1215
java-toolchain:
16+
description: 'Whether a Java toolchain should be used'
1317
required: false
1418
default: 'false'
15-
description: 'Whether a Java toolchain should be used'
16-
develocity-access-key:
19+
java-version:
20+
description: 'Java version to use for the build'
1721
required: false
18-
description: 'The access key for authentication with ge.spring.io'
22+
default: '17'
1923
runs:
2024
using: composite
2125
steps:
2226
- name: Set Up Java
2327
uses: actions/setup-java@v4
2428
with:
25-
distribution: ${{ inputs.java-early-access == 'true' && 'temurin' || 'liberica' }}
29+
distribution: ${{ inputs.java-early-access == 'true' && 'temurin' || (inputs.java-distribution || 'liberica') }}
2630
java-version: |
2731
${{ inputs.java-early-access == 'true' && format('{0}-ea', inputs.java-version) || inputs.java-version }}
2832
${{ inputs.java-toolchain == 'true' && '17' || '' }}
2933
- name: Set Up Gradle
30-
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
34+
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
3135
with:
3236
cache-read-only: false
3337
develocity-access-key: ${{ inputs.develocity-access-key }}

.github/actions/print-jvm-thread-dumps/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Print JVM thread dumps
2-
description: Prints a thread dump for all running JVMs
2+
description: 'Prints a thread dump for all running JVMs'
33
runs:
44
using: composite
55
steps:
Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,39 @@
11
name: Send Notification
2-
description: Sends a Google Chat message as a notification of the job's outcome
2+
description: 'Sends a Google Chat message as a notification of the job''s outcome'
33
inputs:
4-
webhook-url:
5-
description: 'Google Chat Webhook URL'
6-
required: true
7-
status:
8-
description: 'Status of the job'
9-
required: true
104
build-scan-url:
115
description: 'URL of the build scan to include in the notification'
6+
required: false
127
run-name:
138
description: 'Name of the run to include in the notification'
9+
required: false
1410
default: ${{ format('{0} {1}', github.ref_name, github.job) }}
11+
status:
12+
description: 'Status of the job'
13+
required: true
14+
webhook-url:
15+
description: 'Google Chat Webhook URL'
16+
required: true
1517
runs:
1618
using: composite
1719
steps:
18-
- shell: bash
20+
- name: Prepare Variables
21+
shell: bash
1922
run: |
2023
echo "BUILD_SCAN=${{ inputs.build-scan-url == '' && ' [build scan unavailable]' || format(' [<{0}|Build Scan>]', inputs.build-scan-url) }}" >> "$GITHUB_ENV"
2124
echo "RUN_URL=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> "$GITHUB_ENV"
22-
- shell: bash
25+
- name: Success Notification
2326
if: ${{ inputs.status == 'success' }}
27+
shell: bash
2428
run: |
2529
curl -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d '{ text: "<${{ env.RUN_URL }}|${{ inputs.run-name }}> was successful ${{ env.BUILD_SCAN }}"}' || true
26-
- shell: bash
30+
- name: Failure Notification
2731
if: ${{ inputs.status == 'failure' }}
32+
shell: bash
2833
run: |
2934
curl -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d '{ text: "<users/all> *<${{ env.RUN_URL }}|${{ inputs.run-name }}> failed* ${{ env.BUILD_SCAN }}"}' || true
30-
- shell: bash
35+
- name: Cancel Notification
3136
if: ${{ inputs.status == 'cancelled' }}
37+
shell: bash
3238
run: |
3339
curl -X POST '${{ inputs.webhook-url }}' -H 'Content-Type: application/json' -d '{ text: "<${{ env.RUN_URL }}|${{ inputs.run-name }}> was cancelled"}' || true

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
name: Sync to Maven Central
2-
description: Syncs a release to Maven Central and waits for it to be available for use
2+
description: 'Syncs a release to Maven Central and waits for it to be available for use'
33
inputs:
44
jfrog-cli-config-token:
55
description: 'Config token for the JFrog CLI'
66
required: true
7-
spring-framework-version:
8-
description: 'The version of Spring Framework that is being synced to Central'
9-
required: true
10-
ossrh-s01-token-username:
11-
description: 'Username for authentication with s01.oss.sonatype.org'
7+
ossrh-s01-staging-profile:
8+
description: 'Staging profile to use when syncing to Central'
129
required: true
1310
ossrh-s01-token-password:
1411
description: 'Password for authentication with s01.oss.sonatype.org'
1512
required: true
16-
ossrh-s01-staging-profile:
17-
description: 'Staging profile to use when syncing to Central'
13+
ossrh-s01-token-username:
14+
description: 'Username for authentication with s01.oss.sonatype.org'
15+
required: true
16+
spring-framework-version:
17+
description: 'Version of Spring Framework that is being synced to Central'
1818
required: true
1919
runs:
2020
using: composite
2121
steps:
2222
- name: Set Up JFrog CLI
23-
uses: jfrog/setup-jfrog-cli@105617d23456a69a92485207c4f28ae12297581d # v4.2.1
23+
uses: jfrog/setup-jfrog-cli@9fe0f98bd45b19e6e931d457f4e98f8f84461fb5 # v4.4.1
2424
env:
2525
JF_ENV_SPRING: ${{ inputs.jfrog-cli-config-token }}
2626
- name: Download Release Artifacts
@@ -29,14 +29,14 @@ runs:
2929
- name: Sync
3030
uses: spring-io/nexus-sync-action@42477a2230a2f694f9eaa4643fa9e76b99b7ab84 # v0.0.1
3131
with:
32-
username: ${{ inputs.ossrh-s01-token-username }}
32+
close: true
33+
create: true
34+
generate-checksums: true
3335
password: ${{ inputs.ossrh-s01-token-password }}
36+
release: true
3437
staging-profile-name: ${{ inputs.ossrh-s01-staging-profile }}
35-
create: true
3638
upload: true
37-
close: true
38-
release: true
39-
generate-checksums: true
39+
username: ${{ inputs.ossrh-s01-token-username }}
4040
- name: Await
4141
uses: ./.github/actions/await-http-resource
4242
with:

.github/workflows/backport-bot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Backport Bot
2-
32
on:
43
issues:
54
types: [labeled]
@@ -29,6 +28,6 @@ jobs:
2928
run: wget https://github.com/spring-io/backport-bot/releases/download/latest/backport-bot-0.0.1-SNAPSHOT.jar
3029
- name: Backport
3130
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3331
GITHUB_EVENT: ${{ toJSON(github.event) }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3433
run: java -jar backport-bot-0.0.1-SNAPSHOT.jar --github.accessToken="$GITHUB_TOKEN" --github.event_name "$GITHUB_EVENT_NAME" --github.event "$GITHUB_EVENT"

.github/workflows/build-and-deploy-snapshot.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,41 @@ concurrency:
88
jobs:
99
build-and-deploy-snapshot:
1010
name: Build and Deploy Snapshot
11+
if: ${{ github.repository == 'spring-projects/spring-framework' }}
1112
runs-on: ubuntu-latest
1213
timeout-minutes: 60
13-
if: ${{ github.repository == 'spring-projects/spring-framework' }}
1414
steps:
1515
- name: Check Out Code
1616
uses: actions/checkout@v4
1717
- name: Build and Publish
1818
id: build-and-publish
1919
uses: ./.github/actions/build
2020
with:
21-
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
21+
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2222
publish: true
2323
- name: Deploy
2424
uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1
2525
with:
26-
uri: 'https://repo.spring.io'
27-
username: ${{ secrets.ARTIFACTORY_USERNAME }}
28-
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
29-
build-name: 'spring-framework-6.2.x'
30-
repository: 'libs-snapshot-local'
31-
folder: 'deployment-repository'
32-
signing-key: ${{ secrets.GPG_PRIVATE_KEY }}
33-
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}
3426
artifact-properties: |
3527
/**/framework-api-*.zip::zip.name=spring-framework,zip.deployed=false
3628
/**/framework-api-*-docs.zip::zip.type=docs
3729
/**/framework-api-*-schema.zip::zip.type=schema
30+
build-name: 'spring-framework-6.2.x'
31+
folder: 'deployment-repository'
32+
password: ${{ secrets.ARTIFACTORY_PASSWORD }}
33+
repository: 'libs-snapshot-local'
34+
signing-key: ${{ secrets.GPG_PRIVATE_KEY }}
35+
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}
36+
uri: 'https://repo.spring.io'
37+
username: ${{ secrets.ARTIFACTORY_USERNAME }}
3838
- name: Send Notification
39-
uses: ./.github/actions/send-notification
4039
if: always()
40+
uses: ./.github/actions/send-notification
4141
with:
42-
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
43-
status: ${{ job.status }}
4442
build-scan-url: ${{ steps.build-and-publish.outputs.build-scan-url }}
4543
run-name: ${{ format('{0} | Linux | Java 17', github.ref_name) }}
44+
status: ${{ job.status }}
45+
webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
4646
outputs:
4747
version: ${{ steps.build-and-publish.outputs.version }}
4848
verify:
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,36 @@
11
name: Build Pull Request
22
on: pull_request
3-
43
permissions:
54
contents: read
6-
75
jobs:
86
build:
97
name: Build Pull Request
8+
if: ${{ github.repository == 'spring-projects/spring-framework' }}
109
runs-on: ubuntu-latest
1110
timeout-minutes: 60
12-
if: ${{ github.repository == 'spring-projects/spring-framework' }}
1311
steps:
14-
- name: Set up JDK 17
12+
- name: Set Up JDK 17
1513
uses: actions/setup-java@v4
1614
with:
17-
java-version: '17'
1815
distribution: 'liberica'
16+
java-version: '17'
1917
- name: Check Out
2018
uses: actions/checkout@v4
2119
- name: Validate Gradle Wrapper
22-
uses: gradle/actions/wrapper-validation@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
20+
uses: gradle/actions/wrapper-validation@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
2321
- name: Set Up Gradle
24-
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3.5.0
22+
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
2523
- name: Build
2624
env:
2725
CI: 'true'
2826
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
2927
run: ./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --no-parallel --continue build
3028
- name: Print JVM Thread Dumps When Cancelled
31-
uses: ./.github/actions/print-jvm-thread-dumps
3229
if: cancelled()
30+
uses: ./.github/actions/print-jvm-thread-dumps
3331
- name: Upload Build Reports
34-
uses: actions/upload-artifact@v4
3532
if: failure()
33+
uses: actions/upload-artifact@v4
3634
with:
3735
name: build-reports
3836
path: '**/build/reports/'

0 commit comments

Comments
 (0)