From 53b391fa2d87de6310c721a52cdae2dc1ad76385 Mon Sep 17 00:00:00 2001 From: Nicolas Dubois Date: Thu, 23 Oct 2025 16:52:10 +0200 Subject: [PATCH 1/2] fix: add support for JDK >17 --- src/releases.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/releases.ts b/src/releases.ts index fde6639..ff8ca06 100644 --- a/src/releases.ts +++ b/src/releases.ts @@ -44,6 +44,10 @@ export class Releases { // Versions after v1.24.0 require JDK 17+ return (await this.getReleaseDataByName('v1.24.0'))!; } + if (javaVersion < 21) { + // Versions after v1.28.0 require JDK 21+ + return (await this.getReleaseDataByName('v1.28.0'))!; + } if (!this.octokit) { return this.callReleasesApi('/latest'); } @@ -56,4 +60,4 @@ export class Releases { const allReleaseData = await this.getAllReleaseData(); return allReleaseData.find(r => r.name === releaseName); } -} \ No newline at end of file +} From e33bac9916ac0040a4f28130cdb24bef037040e3 Mon Sep 17 00:00:00 2001 From: Nicolas Dubois Date: Thu, 23 Oct 2025 16:56:10 +0200 Subject: [PATCH 2/2] ci: add Java 21 to the test matrix --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a9940ca..70ceea0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - java-version: [8, 11, 17] + java-version: [8, 11, 17, 21] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4