From 4452c25b698fb215bd7d7043b0e2d5d77f79b3c8 Mon Sep 17 00:00:00 2001 From: Mateusz Kwiecinski Date: Sat, 21 Nov 2026 15:22:33 +0100 Subject: [PATCH] build: install the JDKs the build's toolchains use The workflow still pre-installed JDK 11 and 17 from the old testJdk11/17 tasks; the tests now run on 17, 21 and 25 (r8Jar also uses 21). Also let Gradle provision the toolchains build logic needs: the dependency diff workflow builds the base branch, which on a build-JDK bump needs the previous build JDK. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/default.yaml | 3 ++- gradle/plugins/settings.gradle | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index 54ea6316..72b317c8 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -27,8 +27,9 @@ jobs: with: distribution: 'temurin' java-version: | - 11 17 + 21 + 25 - uses: actions/setup-java@v6 with: diff --git a/gradle/plugins/settings.gradle b/gradle/plugins/settings.gradle index d0128810..27bce94c 100644 --- a/gradle/plugins/settings.gradle +++ b/gradle/plugins/settings.gradle @@ -1,3 +1,7 @@ +plugins { + id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0" +} + dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories {