diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 80257d2..a23eccf 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: ${{ vars.JAVA_VENDOR }} - java-version: ${{ vars.GRADLE_JAVA_VERSION }} + java-version: 21 java-package: jre cache: 'gradle' - run: printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties @@ -30,6 +30,7 @@ jobs: distribution: ${{ vars.JAVA_VENDOR }} java-version: ${{ vars.JAVA_VERSION }} check-latest: true + - run: printf "\norg.gradle.java.installations.paths=%s" "$JAVA_HOME" >> gradle.properties - run: java --version