Install Gradle on CentOS

Gradle is a free and opensource general purpose build tool used mainly for Java projects. It uses Groovy which is dynamic, object-oriented programming language to define projects and build scripts for Java language. Gradle is also used for building Android projects in Android Studio. In this tutorial, you are going to learn how to install Gradle on CentOS 7.

Prerequisites

Before you start to install Gradle on CentOS. You must have the non-root user account on your server/desktop with sudo privileges.

Install OpenJDK

Gradle requires Java to be installed on your system. To install OpenJDK 8 run following command in terminal:

sudo yum install java-1.8.0-openjdk-devel

Confirm the OpenJDK installation typing following command:

java -version

Download Gradle

You can download Gradle from official Gradle release page. The latest Gradle version available is 5.1. You can check visiting there website if new version is available.