Skip to content

Commit

Permalink
Update setup-java action to v4
Browse files Browse the repository at this point in the history
The current version (v1) of the setup-java action is outdated,
and may stop working in the future. As newer versions of the action
require the 'distribution' field, 'zulu' is specified, which is
the default used in v1.

Let's update the workflow dependency, and use the format as recommended
in https://github.com/actions/setup-java/blob/main/README.md.
  • Loading branch information
aureliony authored and damithc committed Aug 8, 2024
1 parent 6f00272 commit 4209f9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
uses: gradle/actions/wrapper-validation@v3

- name: Setup JDK 17
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
java-package: jdk+fx

Expand Down

0 comments on commit 4209f9c

Please sign in to comment.