Skip to content

Commit 2aea08f

Browse files
committed
Merge branch 'main' into message-source-common-messages
# Conflicts: # spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/context/MessageSourceProperties.java
2 parents 7d70b39 + 7af238a commit 2aea08f

File tree

302 files changed

+5265
-1766
lines changed

Some content is hidden

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

302 files changed

+5265
-1766
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: 44 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,83 @@
1-
name: 'Build'
1+
name: Build
22
description: 'Builds the project, optionally publishing it to a local deployment repository'
33
inputs:
4-
java-version:
4+
commercial-release-repository-url:
5+
description: 'URL of the release repository'
56
required: false
6-
default: '17'
7-
description: 'The Java version to compile and test with'
7+
commercial-repository-password:
8+
description: 'Password for authentication with the commercial repository'
9+
required: false
10+
commercial-repository-username:
11+
description: 'Username for authentication with the commercial repository'
12+
required: false
13+
commercial-snapshot-repository-url:
14+
description: 'URL of the snapshot repository'
15+
required: false
16+
develocity-access-key:
17+
description: 'Access key for authentication with ge.spring.io'
18+
required: false
19+
gradle-cache-read-only:
20+
description: 'Whether Gradle''s cache should be read only'
21+
required: false
22+
default: 'true'
23+
java-distribution:
24+
description: 'Java distribution to use'
25+
required: false
26+
default: 'liberica'
827
java-early-access:
28+
description: 'Whether the Java version is in early access'
929
required: false
1030
default: 'false'
11-
description: 'Whether the Java version is in early access'
1231
java-toolchain:
32+
description: 'Whether a Java toolchain should be used'
1333
required: false
1434
default: 'false'
15-
description: 'Whether a Java toolchain should be used'
16-
java-distribution:
35+
java-version:
36+
description: 'Java version to compile and test with'
1737
required: false
18-
default: 'liberica'
19-
description: 'The distribution of Java to use'
38+
default: '17'
2039
publish:
21-
required: false
22-
default: 'false'
2340
description: 'Whether to publish artifacts ready for deployment to Artifactory'
24-
develocity-access-key:
2541
required: false
26-
description: 'The access key for authentication with ge.spring.io'
42+
default: 'false'
2743
outputs:
2844
build-scan-url:
29-
description: 'The URL, if any, of the build scan produced by the build'
45+
description: 'URL, if any, of the build scan produced by the build'
3046
value: ${{ (inputs.publish == 'true' && steps.publish.outputs.build-scan-url) || steps.build.outputs.build-scan-url }}
3147
version:
32-
description: 'The version that was built'
48+
description: 'Version that was built'
3349
value: ${{ steps.read-version.outputs.version }}
3450
runs:
3551
using: composite
3652
steps:
3753
- name: Prepare Gradle Build
3854
uses: ./.github/actions/prepare-gradle-build
3955
with:
56+
cache-read-only: ${{ inputs.gradle-cache-read-only }}
4057
develocity-access-key: ${{ inputs.develocity-access-key }}
41-
java-version: ${{ inputs.java-version }}
58+
java-distribution: ${{ inputs.java-distribution }}
4259
java-early-access: ${{ inputs.java-early-access }}
4360
java-toolchain: ${{ inputs.java-toolchain }}
44-
java-distribution: ${{ inputs.java-distribution }}
61+
java-version: ${{ inputs.java-version }}
4562
- name: Build
4663
id: build
4764
if: ${{ inputs.publish == 'false' }}
4865
shell: bash
66+
env:
67+
COMMERCIAL_RELEASE_REPO_URL: ${{ inputs.commercial-release-repository-url }}
68+
COMMERCIAL_REPO_PASSWORD: ${{ inputs.commercial-repository-password }}
69+
COMMERCIAL_REPO_USERNAME: ${{ inputs.commercial-repository-username }}
70+
COMMERCIAL_SNAPSHOT_REPO_URL: ${{ inputs.commercial-snapshot-repository-url }}
4971
run: ./gradlew build
5072
- name: Publish
5173
id: publish
5274
if: ${{ inputs.publish == 'true' }}
5375
shell: bash
76+
env:
77+
COMMERCIAL_RELEASE_REPO_URL: ${{ inputs.commercial-release-repository-url }}
78+
COMMERCIAL_REPO_PASSWORD: ${{ inputs.commercial-repository-password }}
79+
COMMERCIAL_REPO_USERNAME: ${{ inputs.commercial-repository-username }}
80+
COMMERCIAL_SNAPSHOT_REPO_URL: ${{ inputs.commercial-snapshot-repository-url }}
5481
run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
5582
- name: Read Version From gradle.properties
5683
id: read-version
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/create-github-release/changelog-generator.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
changelog:
2-
repository: ${{ github.repository }}
32
sections:
43
- title: ":star: New Features"
54
labels:

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

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
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+
cache-read-only:
5+
description: 'Whether Gradle''s cache should be read only'
56
required: false
6-
default: '17'
7-
description: 'The Java version to use for the build'
8-
java-early-access:
7+
default: 'true'
8+
develocity-access-key:
9+
description: 'Access key for authentication with ge.spring.io'
910
required: false
10-
default: 'false'
11+
java-distribution:
12+
description: 'Java distribution to use'
13+
required: false
14+
default: 'liberica'
15+
java-early-access:
1116
description: 'Whether the Java version is in early access. When true, forces java-distribution to temurin'
12-
java-toolchain:
1317
required: false
1418
default: 'false'
19+
java-toolchain:
1520
description: 'Whether a Java toolchain should be used'
16-
java-distribution:
1721
required: false
18-
default: 'liberica'
19-
description: 'The distribution of Java to use'
20-
develocity-access-key:
22+
default: 'false'
23+
java-version:
24+
description: 'Java version to use for the build'
2125
required: false
22-
description: 'The access key for authentication with ge.spring.io'
26+
default: '17'
2327
runs:
2428
using: composite
2529
steps:
@@ -35,11 +39,17 @@ runs:
3539
java-version: |
3640
${{ inputs.java-early-access == 'true' && format('{0}-ea', inputs.java-version) || inputs.java-version }}
3741
${{ inputs.java-toolchain == 'true' && '17' || '' }}
38-
- name: Set Up Gradle
42+
- name: Set Up Gradle With Read/Write Cache
43+
if: ${{ inputs.cache-read-only == 'false' }}
3944
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
4045
with:
4146
cache-read-only: false
4247
develocity-access-key: ${{ inputs.develocity-access-key }}
48+
- name: Set Up Gradle
49+
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
50+
with:
51+
develocity-access-key: ${{ inputs.develocity-access-key }}
52+
develocity-token-expiry: 4
4353
- name: Configure Gradle Properties
4454
shell: bash
4555
run: |

.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:

.github/actions/publish-gradle-plugin/action.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
name: Publish Gradle Plugin
2-
description: Publishes Spring Boot's Gradle plugin to the Plugin Portal
2+
description: 'Publishes Spring Boot''s Gradle plugin to the Plugin Portal'
33
inputs:
4-
jfrog-cli-config-token:
5-
description: 'Config token for the JFrog CLI'
6-
required: true
7-
plugin-version:
8-
description: 'Version of the plugin'
9-
required: true
4+
build-number:
5+
description: 'Build number to use when downloading plugin artifacts'
6+
required: false
7+
default: ${{ github.run_number }}
108
gradle-plugin-publish-key:
119
description: 'Gradle publishing key'
1210
required: true
1311
gradle-plugin-publish-secret:
1412
description: 'Gradle publishing secret'
1513
required: true
16-
build-number:
17-
description: 'The build number to use when downloading plugin artifacts'
18-
required: false
19-
default: ${{ github.run_number }}
14+
jfrog-cli-config-token:
15+
description: 'Config token for the JFrog CLI'
16+
required: true
17+
plugin-version:
18+
description: 'Version of the plugin'
19+
required: true
2020
runs:
2121
using: composite
2222
steps:

.github/actions/publish-to-sdkman/action.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
name: Publish to SDKMAN!
2-
description: Publishes the release as a new candidate version on SDKMAN!
2+
description: 'Publishes the release as a new candidate version on SDKMAN!'
33
inputs:
4+
make-default:
5+
description: 'Whether the release should be made the default version'
6+
required: false
7+
default: 'false'
48
sdkman-consumer-key:
59
description: 'Key for publishing to SDKMAN!'
610
required: true
711
sdkman-consumer-token:
812
description: 'Token for publishing to SDKMAN!'
913
required: true
1014
spring-boot-version:
11-
description: 'The version to publish'
15+
description: 'Version to publish'
1216
required: true
13-
make-default:
14-
description: 'Whether the release should be made the default version'
15-
required: false
16-
default: false
1717
runs:
1818
using: composite
1919
steps:
20-
- shell: bash
20+
- name: Publish Release
21+
shell: bash
2122
run: >
2223
curl -X POST \
2324
-H "Consumer-Key: ${{ inputs.sdkman-consumer-key }}" \
@@ -26,8 +27,9 @@ runs:
2627
-H "Accept: application/json" \
2728
-d '{"candidate": "springboot", "version": "${{ inputs.spring-boot-version }}", "url": "${{ format('https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-cli/{0}/spring-boot-cli-{0}-bin.zip', inputs.spring-boot-version) }}"}' \
2829
https://vendors.sdkman.io/release
29-
- shell: bash
30+
- name: Flag Release as Default
3031
if: ${{ inputs.make-default == 'true' }}
32+
shell: bash
3133
run: >
3234
curl -X PUT \
3335
-H "Consumer-Key: ${{ inputs.sdkman-consumer-key }}" \
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: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
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-boot-version:
8-
description: 'The version of Spring Boot 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-boot-version:
17+
description: 'Version of Spring Boot that is being synced to Central'
1818
required: true
1919
runs:
2020
using: composite
@@ -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:

0 commit comments

Comments
 (0)