Answers for "how to install gradle in ubuntu"

5

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
Posted by: Guest on October-23-2020

Code answers related to "how to install gradle in ubuntu"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language