You may like:

How to Install Apache Maven on Debian 10

Step 1 – Install Java

Java JDK 8 or JRE 8 or higher version is required to run Gradle build tool. Make sure you have proper java version installed on your Debian 10 system. To install Java run the following command: Verify installed Java version on your system.

Step 2 – Install Gradle on Debian 10

Once you installed Java on your system. Download the latest Gradle distribution release binary file from its official download page. You can also use the below command to download Gradle 6.3 on your system. Then extract the downloaded archive and place it to the proper location. Generally, I used /usr/local directory for storing applications. You can use alternative directory like /opt. The Gradle build tool has been configured on your Debian 10 system.

Setup Environment Variable

Now, you need to setup Gradle with PATH environment variable, Also make sure the variable is set after system reboot. Place a shell script under profile.d directory to set PATH variable on reboot. Create a file like below: and add the below line to file Save file and close it. Now source the script to apply environment for current shell. And you have done the Grandle installation on Debian 10 Linux system.

Test Gradle Version

Once you finished the Gradle installation, let’s check the installed version on your system. Output If you see the results like above, means Gradle is successfully installed and configured on Debian 10 system.