Installation
Linux
Ubuntu
20.04 Focal Fossa
First make sure Java SE 8 or later is installed
sudo apt update
sudo apt install openjdk-11-jdkDownloading Gradle
VERSION=6.6.1
wget "https://services.gradle.org/distributions/gradle-${VERSION}-bin.zip" -P /tmpUnzip into /opt/gradle
sudo unzip -d /opt/gradle /tmp/gradle-${VERSION}-bin.zipGradle is regularly updated with security patches and new features. To have more control over versions and updates, we’ll create a symbolic link named latest, which points to the Gradle installation directory:
sudo ln -s /opt/gradle/gradle-${VERSION} /opt/gradle/latestLater, when upgrading Gradle, unpack the newer version and change the symlink to point to it.
Setting up the Environment Variables.
export GRADLE_HOME=/opt/gradle/latest
export PATH=${GRADLE_HOME}/bin:${PATH}Check if Gradle is installed
gradle -vRef: