In this tutorial, How to install Gradle on CentOS. Gradle is a free and Open Source help your build, automate and deliver better software, faster.
- Server instance : CentOS 7
- A sudo user.
Your System update
Login into the sudo user and run the following commands to update your system.
$ sudo yum -y install epel-release $ sudo yum -y update $ sudo reboot
Gradle requires Java Development Kit (JDK) 7 or higher in order to work. Link here
This guide, I use the “binary-only” archive. Link Gradle release page to the latest version of Gradle. Using wget command to download Gradle.
$ cd /opt/ $ wget https://downloads.gradle-dn.com/distributions/gradle-5.6.2-bin.zip
Install Gradle on CentOS
Your run the command following.
$ sudo mkdir /opt/gradle $ sudo unzip -d /opt/gradle gradle-5.6.2-bin.zip
Set the PATH environment for Gradle executable.
$ export PATH=$PATH:/opt/gradle/gradle-5.6.2/bin
To check if the Gradle install was successful.
$ gradle -v
Your system is now built the program with Gradle.