From ba335d908ca694cd6618cbe533378b43896f164b Mon Sep 17 00:00:00 2001 From: Andrew Wong <42793301+md5sha256@users.noreply.github.com> Date: Mon, 6 May 2024 20:32:08 +1000 Subject: [PATCH] Setup both jdk17 and jdk21 --- .github/workflows/gradle.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 3a1f178..a444507 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -12,12 +12,18 @@ jobs: runs-on: "${{ matrix.os }}" steps: - uses: actions/checkout@v4 - - uses: gradle/actions/wrapper-validation@v3 - - name: Set up JDK 21 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: - java-version: '21' + java-version: '17' distribution: 'zulu' cache: 'gradle' + - name: Set up JDK 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'zulu' + cache: 'gradle' + - uses: gradle/actions/wrapper-validation@v3 - name: Build with Gradle run: ./gradlew clean build