Skip to content

Commit 160a766

Browse files
committed
Also use gradle setup action for release builds
1 parent 204971d commit 160a766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ jobs:
110110
java-version: 22
111111
# The project version extract NEEDS to have the gradle wrapper already downloaded.
112112
# So we have a dummy step here just to initialize it.
113-
- name: Download Gradle wrapper
114-
run: ./gradlew --version
113+
- name: Setup Gradle
114+
uses: gradle/actions/setup-gradle@v4
115115
# Set environment variable for the project version: "var_to_set=$(command_to_run)" >> sink
116116
# - For maven: echo "PROJECT_VERSION=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
117117
# - For gradle: echo "PROJECT_VERSION=$(./gradlew properties | grep -Po '(?<=version: ).*')" >> $GITHUB_ENV

0 commit comments

Comments
 (0)