Skip to content

Commit 76d5882

Browse files
committed
Update bootstrap script to handle non-semver
Gradle names new minor versions without the 0 patch designation, but the GitHub tags for the release still require them. Authored-by: Leonhardt Koepsell <[email protected]>
1 parent a774f8c commit 76d5882

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.idea/vcs.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bootstrap.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ if [ ! -f "$WRAPPER_JAR" ]; then
99
echo "gradle-wrapper.jar is missing, downloading..."
1010
DISTRIBUTION_URL=$(grep -o 'distributionUrl=.*' "$WRAPPER_PROPERTIES" | cut -d'=' -f2)
1111
GRADLE_VERSION=$(echo "$DISTRIBUTION_URL" | sed -nE 's/.*gradle-(.+)-(bin|all)\.zip/\1/p')
12+
if echo "$GRADLE_VERSION" | grep -qE '^[0-9]+\.[0-9]+$'; then
13+
GRADLE_VERSION="${GRADLE_VERSION}.0"
14+
fi
1215
JAR_URL="https://github.com/gradle/gradle/raw/refs/tags/v${GRADLE_VERSION}/gradle/wrapper/gradle-wrapper.jar"
1316
curl -s -L -o "$WRAPPER_JAR" "$JAR_URL"
1417
echo "gradle-wrapper.jar downloaded successfully."

0 commit comments

Comments
 (0)