How to install Gradle on Ubuntu 18.04

Gradle is a general-purpose build tool used primarily for Java projects. It combines the best features of Ant and Maven. Unlike its predecessors which use XML for scripting, Gradle uses Groovy, a dynamic, object-oriented programming language for the Java platform to define the project and build scripts.

In this tutorial we will show you how to install Gradle on Ubuntu 18.04. The same instructions apply for Ubuntu 16.04 and any Ubuntu based distribution, including Linux Mint and Elementary OS.