From c4e7b5174c1875220132941d8508da7d2db2b1dd Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 5 Aug 2023 13:14:56 +0000 Subject: remove gradle-wrapper jar because it is against ASF policy to ship jars in source releases git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911462 13f79535-47bb-0310-9956-ffa450edef68 --- gradlew | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'gradlew') diff --git a/gradlew b/gradlew index aeb74cbb43..4e47bba686 100755 --- a/gradlew +++ b/gradlew @@ -111,6 +111,19 @@ case "$( uname )" in #( NONSTOP* ) nonstop=true ;; esac + +# Loop in case we encounter an error. +for attempt in 1 2 3; do + if [ ! -e "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" ]; then + if ! curl -s -S --retry 3 -L -o "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" "https://raw.githubusercontent.com/gradle/gradle/v8.2.1/gradle/wrapper/gradle-wrapper.jar"; then + rm -f "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" + # Pause for a bit before looping in case the server throttled us. + sleep 5 + continue + fi + fi +done + CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar -- cgit v1.2.3