From 939ffb0c0988ad3a248e6328b4e6f83ef482cbe5 Mon Sep 17 00:00:00 2001 From: Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> Date: Wed, 4 Dec 2024 01:03:16 -0500 Subject: [PATCH] Update build workflow --- scripts/src/lib/template/templates/git/workflow.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/src/lib/template/templates/git/workflow.yml b/scripts/src/lib/template/templates/git/workflow.yml index b01da52c..2230f73e 100644 --- a/scripts/src/lib/template/templates/git/workflow.yml +++ b/scripts/src/lib/template/templates/git/workflow.yml @@ -18,16 +18,17 @@ jobs: steps: - name: checkout repository uses: actions/checkout@v4 - - name: validate gradle wrapper - uses: gradle/wrapper-validation-action@v2 - name: setup jdk ${{ matrix.java }} uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} distribution: 'microsoft' - - name: make gradle wrapper executable - run: chmod +x ./gradlew - - name: build + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + validate-wrappers: true + - name: Build with Gradle run: ./gradlew build - name: capture build artifacts if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java