Gradle is a general-purpose tool used to build, automate, and deliver software. It is primarily used for Java, C++, and Swift projects.

Gradle 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.

This guide explains how to install Gradle on Ubuntu 20.04. We’ll download the latest release of Gradle from their official website.

Prerequisites

The instructions assume that you are logged in as root or user with sudo privileges .

Installing OpenJDK

Gradle requires Java SE 8 or later to be installed on the machine.

Enter the following commands to install OpenJDK 11 :

sudo apt update
sudo apt install openjdk-11-jdk

Verify the Java installation by printing the Java version:

java -version

#ubuntu 20.04 #ubuntu #gradle

How to Install Gradle on Ubuntu 20.04
3.20 GEEK