Trending News

Blog

Gradle Installation on Ubuntu 18.04 / Ubuntu 16.04 [ Easy Guide ]
Guide

Gradle Installation on Ubuntu 18.04 / Ubuntu 16.04 [ Easy Guide ] 

Gradle Installation

Gradle is a free and open-source build tool for automating application development. Gradle makes it easy and faster for developers to build, automate, and deliver software. This tutorial will walk you through Gradle Installation on Ubuntu 18.04 / Ubuntu 16.04.

Requirements

Gradle requires Java JDK 8 or JRE 8 or a later version of Java. Ensure the java is installed on your Ubuntu system, or use the following command to do so.

Verify the Java version on your system.

How To Install Gradle on Ubuntu?

Once you have installed Java on your computer, you are ready to go. From its official download page, get the new Gradle distribution release binary file.

Then, after downloading the folder, extract it and save it to the appropriate location. In general, I kept my applications in the /usr/local directory. You may use a different directory, such as /opt.

Setup Gradle with PATH Environment Variable

Now you must configure Gradle to use the PATH environment variable, as well as ensure that the variable is set after the system is rebooted.

To set the PATH variable on reboot, place a shell script in the profile.d directory. Create a file that looks like this:

and add the line below to the file

Save and close the file. Now you can use the script to apply the current shell’s setting.

And you have successfully installed Grandle on your Ubuntu system.

Verify Gradle Version

Verify the version of Gradle that is installed on your system now that you have finished installing it.

Result

Gradle has been successfully installed and configured on your Ubuntu system if you see the above results.

Related posts