Skip to content

Commit 6fec5c0

Browse files
Update common files
1 parent 278d2e8 commit 6fec5c0

File tree

7 files changed

+15
-16
lines changed

7 files changed

+15
-16
lines changed

.github/workflows/central-sync.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ jobs:
2323
uses: actions/setup-java@v4
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/gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
fetch-depth: 0
4848

4949
- name: "🔧 Setup GraalVM CE"
50-
uses: graalvm/[email protected].5
50+
uses: graalvm/[email protected].4
5151
with:
5252
distribution: 'graalvm'
5353
java-version: ${{ matrix.java }}

.github/workflows/publish-snapshot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
uses: actions/setup-java@v4
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: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
uses: actions/setup-java@v4
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 publishAllPublicationsToBuildRepository publishToSonatype closeAndReleaseSonatypeStagingRepository
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: |

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

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)