Use gradle through a proxy
gradle clean assemble -Dhttp.proxyHost=172.16.35.1 -Dhttp.proxyPort=8080 --stacktrace > toto.txt 2>&1
gradle clean build -Dhttp.proxyHost=172.16.35.1 -Dhttp.proxyPort=8080 --stacktrace > toto.txt 2>&1
Activate a specific gradle version:
sudo update-alternatives --config gradle
Update gradlew version:
gradle wrapper --gradle-version=5.5.1