From 4209f9c58b4dedc236160aa1955e7353d19edfa3 Mon Sep 17 00:00:00 2001
From: aureliony <39163684+aureliony@users.noreply.github.com>
Date: Sun, 28 Jul 2024 00:02:55 +0800
Subject: [PATCH] Update setup-java action to v4

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.
---
 .github/workflows/gradle.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index baf89c824..5d3662298 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -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