Shell/Bash: latest gradle version Example

By

Shell/Bash Example: This is the "latest gradle version" Example. compiled from many sources on the internet by SimpleTutorials.org

latest gradle version

$ gradle -v

------------------------------------------------------------
Gradle 6.8.3
------------------------------------------------------------

how to install gradle in ubuntu

sudo apt update
sudo apt install openjdk-8-jdk -y
java -version

wget https://services.gradle.org/distributions/gradle-5.0-bin.zip -P /tmp
sudo unzip -d /opt/gradle /tmp/gradle-*.zip
ls /opt/gradle/gradle-5.0
sudo nano /etc/profile.d/gradle.sh

####/etc/profile.d/gradle.sh
export GRADLE_HOME=/opt/gradle/gradle-5.0
export PATH=${GRADLE_HOME}/bin:${PATH}
## save and exit

source /etc/profile.d/gradle.sh
gradle -v

gradle version

$ gradle -v

------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------



* Summary: This "latest gradle version" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others