Skip to content

Commit c08472d

Browse files
committed
chore: parameterize JVM target in publish.yml for improved flexibility
1 parent a67b7f4 commit c08472d

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
SLNE_RELEASES_REPO_USERNAME: ${{ secrets.SLNE_RELEASES_REPO_USERNAME }}
1313
SLNE_RELEASES_REPO_PASSWORD: ${{ secrets.SLNE_RELEASES_REPO_PASSWORD }}
1414
MODULE_REGEX: "surf-database.*-all\\.jar$"
15+
JVM_TARGET: "25"
1516

1617
jobs:
1718
build:
@@ -39,16 +40,16 @@ jobs:
3940
uses: actions/setup-java@v4
4041
with:
4142
distribution: 'graalvm'
42-
java-version: '25'
43+
java-version: ${{ env.JVM_TARGET }}
4344

4445
- name: Build all modules with Gradle
45-
run: ./gradlew build shadowJar --parallel --no-scan
46+
run: ./gradlew build shadowJar --parallel --no-scan -jvm-target ${{ env.JVM_TARGET }}
4647

4748
- name: Check all modules with Gradle
48-
run: ./gradlew check --parallel --no-scan
49+
run: ./gradlew check --parallel --no-scan -jvm-target ${{ env.JVM_TARGET }}
4950

5051
- name: Publish all modules to Maven
51-
run: ./gradlew publish --parallel --no-scan
52+
run: ./gradlew publish --parallel --no-scan -jvm-target ${{ env.JVM_TARGET }}
5253

5354
- name: Extract Project Version
5455
id: get_version

0 commit comments

Comments
 (0)