
The output should look something like this: openjdk version "1.8.0_181" Verify the Java installation by running the following command which will print the Java version: java -version Install the OpenJDK package by typing: sudo apt install openjdk-8-jdk

Start by updating the package index: sudo apt update Gradle requires Java JDK or JRE version 7 or above to be installed. We’ll be downloading the latest release of Gradle from their official website. The following sections provide a step by step instructions about how to install the latest Gradle version on Ubuntu 18.04. In order to be able to install packages on your Ubuntu system, you must be logged in as a user with sudo privileges The same instructions apply for Ubuntu 16.04 and any Ubuntu based distribution, including Linux Mint and Elementary OS. In this tutorial we will show you how to install Gradle on Ubuntu 18.04.

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