Commit 238047ac authored by Geoffrey Métais's avatar Geoffrey Métais

Upgrade gradle to v3.4 and use bin only

parent 7ba162e6
...@@ -107,12 +107,12 @@ fi ...@@ -107,12 +107,12 @@ fi
if [ ! -d "gradle/wrapper" ]; then if [ ! -d "gradle/wrapper" ]; then
diagnostic "Downloading gradle" diagnostic "Downloading gradle"
GRADLE_VERSION=3.3 GRADLE_VERSION=3.4
GRADLE_URL=https://download.videolan.org/pub/contrib/gradle/gradle-${GRADLE_VERSION}-all.zip GRADLE_URL=https://download.videolan.org/pub/contrib/gradle/gradle-${GRADLE_VERSION}-bin.zip
wget ${GRADLE_URL} 2>/dev/null || curl -O ${GRADLE_URL} wget ${GRADLE_URL} 2>/dev/null || curl -O ${GRADLE_URL}
checkfail "gradle: download failed" checkfail "gradle: download failed"
unzip -o gradle-${GRADLE_VERSION}-all.zip unzip -o gradle-${GRADLE_VERSION}-bin.zip
checkfail "gradle: unzip failed" checkfail "gradle: unzip failed"
cd gradle-${GRADLE_VERSION} cd gradle-${GRADLE_VERSION}
...@@ -127,7 +127,7 @@ if [ ! -d "gradle/wrapper" ]; then ...@@ -127,7 +127,7 @@ if [ ! -d "gradle/wrapper" ]; then
mv gradle-${GRADLE_VERSION}/gradle/wrapper/ gradle mv gradle-${GRADLE_VERSION}/gradle/wrapper/ gradle
mv gradle-${GRADLE_VERSION}/gradlew . mv gradle-${GRADLE_VERSION}/gradlew .
chmod a+x gradlew chmod a+x gradlew
rm -rf gradle-${GRADLE_VERSION}-all.zip rm -rf gradle-${GRADLE_VERSION}-bin.zip
fi fi
#################### ####################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment