From b184c6598a29a6ee8b993d79cd95ab6778334088 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Thu, 7 Mar 2024 09:00:17 -0800 Subject: [PATCH] gradle.yml workflow: install JDK 21 and 22-ea --- .github/workflows/gradle.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 0ee8cf2..b38a682 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,10 +8,9 @@ jobs: strategy: matrix: os: [ubuntu-latest, macOS-latest] - java: ['21'] distribution: ['temurin'] fail-fast: false - name: ${{ matrix.os }} JDK ${{ matrix.java }} + name: ${{ matrix.os }} JDK 22 steps: - name: Git checkout uses: actions/checkout@v4 @@ -19,7 +18,11 @@ jobs: uses: actions/setup-java@v4 with: distribution: ${{ matrix.distribution }} - java-version: ${{ matrix.java }} + # Setup JDK 21 & JDK 22 to make JDK 22 available to the Gradle Java Toolchains feature + # When installing multiple JDKs, the last JDK installed is the default and will be used to run Gradle itself + java-version: | + 22-ea + 21 - name: Cache Gradle packages uses: actions/cache@v4 with: