wget https://downloads.gradle.org/distributions/gradle-3.1-all.zip
unzip gradle-3.1-all.zip
cd gradle-3.1/bin
https://gradle.org/gradle-download/
unzip gradle-3.1-all.zip
cd gradle-3.1/bin
root@AR:~/gradle-3.1/bin# ls
gradle gradle.bat
root@AR:~/gradle-3.1/bin# echo "export PATH=$PATH:~/gradle-3.1/bin/" >> /etc/profile && . /etc/profile
root@AR:~/gradle-3.1/bin# cd ~
root@AR:~# gradle -h
https://gradle.org/gradle-download/