Skip to content

Commit 18b25b2

Browse files
Update common files
1 parent 9aed38a commit 18b25b2

File tree

8 files changed

+27
-28
lines changed

8 files changed

+27
-28
lines changed

.github/workflows/central-sync.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,17 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Checkout repository
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v5
1919
with:
2020
ref: v${{ github.event.inputs.release_version }}
2121
- uses: gradle/actions/wrapper-validation@v4
2222
- name: Set up JDK
23-
uses: actions/setup-java@v4
23+
uses: actions/setup-java@v5
2424
with:
2525
distribution: 'temurin'
26-
java-version: '17'
26+
java-version: |
27+
17
28+
21
2729
- name: Publish to Sonatype OSSRH
2830
env:
2931
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.github/workflows/graalvm-dev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
outputs:
1919
matrix: ${{ steps.build-matrix.outputs.matrix }}
2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v5
2222
- name: Build Matrix
2323
uses: micronaut-projects/github-actions/graalvm/build-matrix@master
2424
id: build-matrix
@@ -42,7 +42,7 @@ jobs:
4242
DEVELOCITY_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
4343
DEVELOCITY_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646
- name: Pre-Build Steps
4747
uses: micronaut-projects/github-actions/graalvm/pre-build@master
4848
id: pre-build

.github/workflows/graalvm-latest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
outputs:
2525
matrix: ${{ steps.build-matrix.outputs.matrix }}
2626
steps:
27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v5
2828
- name: Build Matrix
2929
uses: micronaut-projects/github-actions/graalvm/build-matrix@master
3030
id: build-matrix
@@ -42,7 +42,7 @@ jobs:
4242
DEVELOCITY_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
4343
DEVELOCITY_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
4444
steps:
45-
- uses: actions/checkout@v4
45+
- uses: actions/checkout@v5
4646
- name: Pre-Build Steps
4747
uses: micronaut-projects/github-actions/graalvm/pre-build@master
4848
id: pre-build

.github/workflows/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
df -h
4343
4444
- name: "📥 Checkout repository"
45-
uses: actions/checkout@v4
45+
uses: actions/checkout@v5
4646
with:
4747
fetch-depth: 0
4848

.github/workflows/publish-snapshot.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ jobs:
1010
if: github.repository != 'micronaut-projects/micronaut-project-template'
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
- uses: actions/cache@v4
1515
with:
1616
path: ~/.gradle/caches
1717
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
1818
restore-keys: |
1919
${{ runner.os }}-gradle-
2020
- name: Set up JDK
21-
uses: actions/setup-java@v4
21+
uses: actions/setup-java@v5
2222
with:
2323
distribution: 'temurin'
24-
java-version: '17'
24+
java-version: |
25+
17
26+
21
2527
- name: Publish to Sonatype Snapshots
2628
if: success()
2729
env:

.github/workflows/release.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v5
1818
with:
1919
token: ${{ secrets.GH_TOKEN }}
2020
- uses: gradle/actions/wrapper-validation@v4
2121
- name: Set up JDK
22-
uses: actions/setup-java@v4
22+
uses: actions/setup-java@v5
2323
with:
2424
distribution: 'temurin'
25-
java-version: '17'
25+
java-version: |
26+
17
27+
21
2628
- name: Set the current release version
2729
id: release_version
2830
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
@@ -45,22 +47,15 @@ jobs:
4547
DEVELOCITY_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
4648
run: |
4749
echo $GPG_FILE | base64 -d > secring.gpg
50+
# Publish both locally and to Sonatype.
51+
# The artifacts stored locally will be used to generate the SLSA provenance.
52+
./gradlew publishToMavenCentral --publishing-type=AUTOMATIC
4853
# Read the current version from gradle.properties.
4954
VERSION=$(./gradlew properties | grep 'version:' | awk '{print $2}')
5055
# Read the project group from gradle.properties.
5156
GROUP_PATH=$(./gradlew properties| grep "projectGroup" | awk '{print $2}' | sed 's/\./\//g')
5257
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
5358
echo "group=$GROUP_PATH" >> "$GITHUB_OUTPUT"
54-
# Publish locally
55-
./gradlew publishAllPublicationsToBuildRepository
56-
# ZIP Artifacts
57-
cd build/repo
58-
zip -r ../../artifacts.zip io
59-
cd ../..
60-
export SONATYPE_BEARER=$(printf "%s:%s" "$SONATYPE_USERNAME" "$SONATYPE_PASSWORD" | base64 | tr -d '\n')
61-
echo "Publishing via the Portal API"
62-
# https://central.sonatype.org/publish/publish-portal-api/#uploading-a-deployment-bundle
63-
curl -X POST https://central.sonatype.com/api/v1/publisher/upload -H "Authorization: Bearer $SONATYPE_BEARER" -F name="$GROUP_PATH $VERSION" -F publishingType="AUTOMATIC" -F [email protected]
6459
- name: Generate subject
6560
id: hash
6661
run: |
@@ -122,7 +117,7 @@ jobs:
122117
artifacts-sha256: ${{ steps.set-hash.outputs.artifacts-sha256 }}
123118
steps:
124119
- name: Download artifacts-sha256
125-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
120+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
126121
with:
127122
name: artifacts-sha256
128123
# The SLSA provenance generator expects the hash digest of artifacts to be passed as a job
@@ -153,9 +148,9 @@ jobs:
153148
if: startsWith(github.ref, 'refs/tags/')
154149
steps:
155150
- name: Checkout repository
156-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
151+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
157152
- name: Download artifacts
158-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
153+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
159154
with:
160155
name: gradle-build-outputs
161156
path: build/repo

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)