Skip to content

Commit f2fc85c

Browse files
Update workflow actions and build/test across Java 25 and 26
1 parent 7552b32 commit f2fc85c

4 files changed

Lines changed: 11 additions & 9 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,20 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
strategy:
14+
fail-fast: false
1415
matrix:
1516
distribution: [ 'zulu' ]
16-
java: [ '25' ]
17+
java: [ '25', '26' ]
1718

1819
steps:
19-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v7
2021
- name: Use JDK ${{ matrix.java }}
2122
uses: actions/setup-java@v5
2223
with:
2324
distribution: ${{ matrix.distribution }}
2425
java-version: ${{ matrix.java }}
2526
- name: Build with Gradle
26-
run: ./gradlew build
27+
run: ./gradlew build -PjavaToolchainVersion=${{ matrix.java }}
2728
env:
2829
GH_PACKAGES_READ_TOKEN: ${{ secrets.GH_PACKAGES_READ_TOKEN }}
2930
GH_PACKAGES_WRITE_TOKEN: ${{ secrets.GH_PACKAGES_WRITE_TOKEN }}

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v5
22+
uses: actions/checkout@v7
2323
with:
2424
fetch-depth: 0
2525

@@ -30,7 +30,7 @@ jobs:
3030
distribution: 'zulu'
3131

3232
- name: Cache Gradle
33-
uses: actions/cache@v4
33+
uses: actions/cache@v6
3434
with:
3535
path: ~/.gradle/caches
3636
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}

‎.github/workflows/test-jreleaser.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ jobs:
2020

2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@v7
2424
with:
2525
fetch-depth: 0
2626

2727
- name: Setup Java
2828
uses: actions/setup-java@v5
2929
with:
30-
java-version: '21'
30+
java-version: '25'
3131
distribution: 'temurin'
3232

3333
- name: Setup Gradle
34-
uses: gradle/actions/setup-gradle@v4
34+
uses: gradle/actions/setup-gradle@v6
3535

3636
- name: Test JReleaser Config
3737
if: ${{ github.event.inputs.test_type == 'config' || github.event.inputs.test_type == 'both' }}

‎build.gradle‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ java {
2424
withSourcesJar()
2525

2626
toolchain {
27-
languageVersion = JavaLanguageVersion.of(25)
27+
languageVersion = JavaLanguageVersion.of(
28+
(project.findProperty('javaToolchainVersion') ?: '25') as String)
2829
}
2930
}
3031

0 commit comments

Comments
 (0)