[Ubuntu] Change java-tools script to retrieve the latest major Gradle version (#3385)

* Change java-tools script to retrieve the latest major gradle version

* Change gradle installation to use manifest json. Use download_with_retries function

* Move maven version to the toolset
This commit is contained in:
Mikhail Timofeev
2021-05-21 15:37:15 +03:00
committed by GitHub
parent 7ce21d8b0e
commit 589a58e707
5 changed files with 24 additions and 23 deletions

View File

@@ -19,7 +19,7 @@ download_with_retries() {
COMMAND="curl $URL -4 -sL -o '$DEST/$NAME'"
fi
echo "Downloading $URL..."
echo "Downloading '$URL' to '${DEST}/${NAME}'..."
i=20
while [ $i -gt 0 ]; do
((i--))
@@ -27,6 +27,7 @@ download_with_retries() {
if [ $? != 0 ]; then
sleep 30
else
echo "Download completed"
return 0
fi
done