Skip to content

Commit d92774a

Browse files
committed
Merge branch '3.3.x'
2 parents 8b1d896 + f069c56 commit d92774a

File tree

6 files changed

+49
-7
lines changed

6 files changed

+49
-7
lines changed

.github/actions/build/action.yml

+22
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ inputs:
2424
develocity-access-key:
2525
required: false
2626
description: 'The access key for authentication with ge.spring.io'
27+
commercial-repository-username:
28+
required: false
29+
description: 'Username for authentication with the commercial repository'
30+
commercial-repository-password:
31+
required: false
32+
description: 'Password for authentication with the commercial repository'
33+
commercial-release-repository-url:
34+
required: false
35+
description: 'URL of the release repository'
36+
commercial-snapshot-repository-url:
37+
required: false
38+
description: 'URL of the snapshot repository'
2739
outputs:
2840
build-scan-url:
2941
description: 'The URL, if any, of the build scan produced by the build'
@@ -46,11 +58,21 @@ runs:
4658
id: build
4759
if: ${{ inputs.publish == 'false' }}
4860
shell: bash
61+
env:
62+
COMMERCIAL_REPO_USERNAME: ${{ inputs.commercial-repository-username }}
63+
COMMERCIAL_REPO_PASSWORD: ${{ inputs.commercial-repository-password }}
64+
COMMERCIAL_RELEASE_REPO_URL: ${{ inputs.commercial-release-repository-url }}
65+
COMMERCIAL_SNAPSHOT_REPO_URL: ${{ inputs.commercial-snapshot-repository-url }}
4966
run: ./gradlew build
5067
- name: Publish
5168
id: publish
5269
if: ${{ inputs.publish == 'true' }}
5370
shell: bash
71+
env:
72+
COMMERCIAL_REPO_USERNAME: ${{ inputs.commercial-repository-username }}
73+
COMMERCIAL_REPO_PASSWORD: ${{ inputs.commercial-repository-password }}
74+
COMMERCIAL_RELEASE_REPO_URL: ${{ inputs.commercial-release-repository-url }}
75+
COMMERCIAL_SNAPSHOT_REPO_URL: ${{ inputs.commercial-snapshot-repository-url }}
5476
run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
5577
- name: Read Version From gradle.properties
5678
id: read-version

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

+8-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
with:
2020
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2121
publish: true
22+
commercial-repository-username: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_USERNAME }}
23+
commercial-repository-password: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_PASSWORD }}
24+
commercial-release-repository-url: ${{ vars.COMMERCIAL_RELEASE_REPO_URL }}
25+
commercial-snapshot-repository-url: ${{ vars.COMMERCIAL_SNAPSHOT_REPO_URL }}
2226
- name: Deploy
2327
uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1
2428
with:
@@ -57,8 +61,10 @@ jobs:
5761
uses: ./.github/workflows/verify.yml
5862
secrets:
5963
google-chat-webhook-url: ${{ secrets.GOOGLE_CHAT_WEBHOOK_URL }}
60-
repository-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
61-
repository-username: ${{ secrets.ARTIFACTORY_USERNAME }}
64+
opensource-repository-password: ${{ secrets.ARTIFACTORY_PASSWORD }}
65+
opensource-repository-username: ${{ secrets.ARTIFACTORY_USERNAME }}
66+
commercial-repository-password: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_PASSWORD }}
67+
commercial-repository-username: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_USERNAME }}
6268
token: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
6369
with:
6470
version: ${{ needs.build-and-deploy-snapshot.outputs.version }}

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ jobs:
5050
java-toolchain: ${{ matrix.java.toolchain }}
5151
java-distribution: ${{ matrix.java.distribution }}
5252
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
53+
commercial-repository-username: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_USERNAME }}
54+
commercial-repository-password: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_PASSWORD }}
55+
commercial-release-repository-url: ${{ vars.COMMERCIAL_RELEASE_REPO_URL }}
56+
commercial-snapshot-repository-url: ${{ vars.COMMERCIAL_SNAPSHOT_REPO_URL }}
5357
- name: Send Notification
5458
uses: ./.github/actions/send-notification
5559
if: always()

.github/workflows/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
with:
2020
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
2121
publish: true
22+
commercial-repository-username: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_USERNAME }}
23+
commercial-repository-password: ${{ secrets.COMMERCIAL_ARTIFACTORY_RO_PASSWORD }}
24+
commercial-release-repository-url: ${{ vars.COMMERCIAL_RELEASE_REPO_URL }}
25+
commercial-snapshot-repository-url: ${{ vars.COMMERCIAL_SNAPSHOT_REPO_URL }}
2226
- name: Stage Release
2327
uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1
2428
with:

.github/workflows/verify.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ on:
1010
default: false
1111
type: boolean
1212
secrets:
13-
repository-username:
13+
opensource-repository-username:
1414
required: false
15-
repository-password:
15+
opensource-repository-password:
16+
required: false
17+
commercial-repository-username:
18+
required: false
19+
commercial-repository-password:
1620
required: false
1721
google-chat-webhook-url:
1822
required: true
@@ -55,8 +59,10 @@ jobs:
5559
RVT_VERSION: ${{ inputs.version }}
5660
RVT_RELEASE_TYPE: oss
5761
RVT_STAGING: ${{ inputs.staging }}
58-
RVT_OSS_REPOSITORY_USERNAME: ${{ secrets.repository-username }}
59-
RVT_OSS_REPOSITORY_PASSWORD: ${{ secrets.repository-password }}
62+
RVT_OSS_REPOSITORY_USERNAME: ${{ secrets.opensource-repository-username }}
63+
RVT_OSS_REPOSITORY_PASSWORD: ${{ secrets.opensource-repository-password }}
64+
RVT_COMMERCIAL_REPOSITORY_USERNAME: ${{ secrets.commercial-repository-username }}
65+
RVT_COMMERCIAL_REPOSITORY_PASSWORD: ${{ secrets.commercial-repository-password }}
6066
run: ./gradlew spring-boot-release-verification-tests:test
6167
- name: Upload Build Reports on Failure
6268
uses: actions/upload-artifact@v4

buildSrc/src/main/java/org/springframework/boot/build/bom/bomr/UpgradeBom.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private void addOpenSourceRepositories() {
5353

5454
private void addCommercialRepositories() {
5555
getRepositoryNames().addAll(ArtifactRepositoryContainer.DEFAULT_MAVEN_CENTRAL_REPO_NAME,
56-
"spring-commerical-release");
56+
"spring-commercial-release");
5757
}
5858

5959
@Override

0 commit comments

Comments
 (0)