Skip to content

Commit

Permalink
Fix testing on JDK 17
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-petrov committed Jul 21, 2023
1 parent f1781b5 commit 8c67068
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,18 @@ jobs:
name: gretty-private-repository
path: ${{ env.PRIVATE_REPO }}

# Begin workaround: because the current Gradle wrapper does not support Java 17,
# we use JDK 15 to bootstrap the appropriate Gradle version, and then proceed
# to use a recent version of Gradle and Java.
- name: Set up JDK 15
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 15
- name: Bootstrap Gradle version
run: ./gradlew --no-daemon wrapper --gradle-version $GRADLE_VERSION --distribution-type all
# end workaround

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
Expand Down

0 comments on commit 8c67068

Please sign in to comment.