Skip to content

Commit 13133fd

Browse files
authored
Merge pull request #1131 from jdaugherty/7.0.x
verification fixes
2 parents f4aadfe + b252fba commit 13133fd

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

etc/bin/extract-build-artifact.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if [ -z "${EXTRACT_LOCATION}/second/${ARTIFACT_NAME}" ]; then
4040
echo "❌ Second Artifact Not found: ${ARTIFACT_NAME} could not be found under ${EXTRACT_LOCATION}/second/${ARTIFACT_NAME}"
4141
exit 1;
4242
else
43-
echo " ✅ Second Artifact Found @ ${EXTRACT_LOCATION}/first/${ARTIFACT_NAME}"
43+
echo " ✅ Second Artifact Found @ ${EXTRACT_LOCATION}/second/${ARTIFACT_NAME}"
4444
fi
4545

4646
rm -rf "${EXTRACT_LOCATION}/firstArtifact" || true

etc/bin/verify.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -euo pipefail
2121

2222
PROJECT_NAME='grails-spring-security'
2323
RELEASE_TAG=$1
24-
DOWNLOAD_LOCATION="${2:-downloads}"
24+
DOWNLOAD_LOCATION="${2:-.}"
2525
DOWNLOAD_LOCATION=$(realpath "${DOWNLOAD_LOCATION}")
2626

2727
if [ -z "${RELEASE_TAG}" ]; then
@@ -61,7 +61,16 @@ java -version
6161

6262
echo "Bootstrap Gradle ..."
6363
cd "${DOWNLOAD_LOCATION}/${PROJECT_NAME}/gradle-bootstrap"
64-
gradlew
64+
65+
if GRADLE_CMD="$(command -v gradlew 2>/dev/null)"; then
66+
: # found the wrapper on PATH
67+
elif GRADLE_CMD="$(command -v gradle 2>/dev/null)"; then
68+
: # fall back to system-wide Gradle
69+
else
70+
echo "ERROR: Neither gradlew nor gradle found on \$PATH." >&2
71+
exit 1
72+
fi
73+
${GRADLE_CMD}
6574
echo "✅ Gradle Bootstrapped"
6675

6776
echo "Applying License Audit ..."

0 commit comments

Comments
 (0)