Skip to content

Commit

Permalink
test gradle on 23.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpe7s committed Aug 16, 2024
1 parent 72065ae commit 3daf9d4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,21 @@ jobs:
- uses: gradle/actions/wrapper-validation@v3

- uses: actions/setup-java@v4
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION }}
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION && !endsWith(vars.GRADLE_JAVA_VERSION, 'ea') }}
with:
distribution: ${{ vars.JAVA_VENDOR }}
java-version: '23-ea'
java-version: ${{ vars.GRADLE_JAVA_VERSION }}
java-package: jre
cache: 'gradle'

- uses: actions/setup-java@v4
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION && endsWith(vars.GRADLE_JAVA_VERSION, 'ea') }}
with:
distribution: ${{ vars.JAVA_VENDOR }}
java-version: ${{ vars.GRADLE_JAVA_VERSION }}
java-package: jdk
cache: 'gradle'

- run: printf "org.gradle.java.home=%s" "$JAVA_HOME" > gradle.properties
if: ${{ vars.GRADLE_JAVA_VERSION != vars.JAVA_VERSION }}

Expand Down

0 comments on commit 3daf9d4

Please sign in to comment.