This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 5.0.x
in repository https://gitbox.apache.org/repos/asf/grails-redis.git


The following commit(s) were added to refs/heads/5.0.x by this push:
     new 1c606b5  support either gradlew or gradle on the path
1c606b5 is described below

commit 1c606b5842213c33911b66601bccdf4b7043b9c8
Author: James Daugherty <[email protected]>
AuthorDate: Wed Jun 11 21:48:27 2025 -0400

    support either gradlew or gradle on the path
---
 etc/bin/verify.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/etc/bin/verify.sh b/etc/bin/verify.sh
index c6d6e57..dfa1fe9 100755
--- a/etc/bin/verify.sh
+++ b/etc/bin/verify.sh
@@ -62,7 +62,16 @@ java -version
 
 echo "Bootstrap Gradle ..."
 cd "${DOWNLOAD_LOCATION}/${PROJECT_NAME}/gradle-bootstrap"
-gradlew
+
+if GRADLE_CMD="$(command -v gradlew 2>/dev/null)"; then
+    :   # found the wrapper on PATH
+elif GRADLE_CMD="$(command -v gradle 2>/dev/null)"; then
+    :   # fall back to system-wide Gradle
+else
+    echo "ERROR: Neither gradlew nor gradle found on \$PATH." >&2
+    exit 1
+fi
+${GRADLE_CMD}
 echo "✅ Gradle Bootstrapped"
 
 echo "Applying License Audit ..."

Reply via email to