In this tutorial, How to install Gradle on CentOS. Gradle is a free and Open Source that helps your build, automate and deliver better software, faster.
Table of Contents
- 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
In this guide, I use the “binary-only” archive. Link the 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. Thank you for reading the DevopsRoles page!