Gradle is an open-source build automation tool used primarily for Java projects. It automates the building, testing, and deployment of applications. In this tutorial, we will show you how to install Gradle on Debian Latest.
Before starting with the installation process, ensure that the following prerequisites are met:
A Debian Latest system
sudo access to the system
Java JDK installation on the system. If Java is not installed, install it using the following command in the terminal:
sudo apt-get install openjdk-11-jdk
To install Gradle on Debian Latest, follow the steps below:
Open your terminal by pressing Ctrl+Alt+T on your keyboard.
Update your system's package list by running the following command:
sudo apt-get update
Install the necessary tools and packages by running the following command:
sudo apt-get install wget unzip
Navigate to the official Gradle website and copy the link to the latest version of Gradle. At the time of writing this tutorial, the latest version of Gradle is 7.2.
https://gradle.org/releases/
Go back to your terminal and execute the following command to download the latest version of Gradle:
wget https://downloads.gradle-dn.com/distributions/gradle-7.2-bin.zip
Extract the downloaded file using the following command:
unzip gradle-7.2-bin.zip -d /opt/
The extracted folder will be named gradle-7.2
. Rename it to simply gradle
:
sudo mv /opt/gradle-7.2/ /opt/gradle/
You also need to set up the PATH environment in order to use Gradle in a terminal. Add the following lines to the end of the /etc/profile file:
PATH=$PATH:/opt/gradle/bin
export PATH
Save and exit the file.
Load the updated PATH environment by running the following command:
source /etc/profile
Verify that Gradle is installed correctly by running the following command:
gradle -v
If Gradle is installed correctly, you should see the following output:
Welcome to Gradle 7.X!
Here are the highlights of this release:
- ......
Gradle 7.X build time: .....
Kotlin: ......
Groovy: ......
JVM: ......
Congratulations! Gradle is now installed on your Debian Latest system.
In this tutorial, we showed you how to install Gradle on Debian Latest. Gradle is a powerful tool that can help you automate the building, testing and deployment of your projects efficiently.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!