How To Install Gradle on CentOS 8

Windows Articles

How to install PHP 8 on CentOS 8?

Hello, friends. This post will help you install PHP 8 on CentOS 8. The procedure is quite simple. PHP 8 has seen the light and...

PHP 8.0 available

PHP is one of the easiest open source programming languages to learn. Similarly, PHP is very popular and suitable for website development and can...

How to install PHP 8 on Ubuntu 20.04 / Debian 10?

Hello, friends. In this post, you will learn how to install PHP 8 on Ubuntu 20.04 / Debian 10. This way, you will be...

Learn how to control the volume of Windows using the mouse wheel.

Hi! Windows recently celebrated its 35th anniversary. Therefore, it is one of the longest lasting and most used systems currently. On the other hand,...

Install Nim programming language on Ubuntu 20.04 / Debian 10

Nowadays, almost everything is done with the help of a computer and a program. And the programs are made through a programming language. That...

Today we are going to learn that how we can Install Gradle on CentOS 8. Gradle is free & Open Source tool that is widely used for the Java projects. The programming language used by the Gradle is Groovy that is dynamic and well defined OOP (Object oriented programming) language. It is also used for the development of scripts for Java language. You can also see the variety of Gradle projects in Android alos. So, without wasting time let’s move towards the insallation of Gradle on CentOS 8. Just follow the below steps for easy installation.

Requirements:

Here’s the list of requirements you need to install Gradle on CentOS 8.

  • OpenJDK
  • Gradle Package
  • Environment Variables

Make sure you’ve sudo privileges.

Step 1: Install OpenJDK

First of all install the Java on your CentOS system. Fire the below command to install OpenJDK 8 on CentOS 8.

sudo yum install java-1.8.0-openjdk-devel

Verify the installation of Java by running the below command.

java -version
how to install gradle on centos 8

Step 2: Downloading Gradle

To download Gradle, go to their official release page. The latest available version at the time of this writing is 6.2.2 released on March 04, 2020. You can visit the official site if there’s new version available.

So, download it from the website or run the following command in your terminal

wget https://services.gradle.org/distributions/gradle-6.2.2-bin.zip -P /tmp

Then unzip the package downloaded by

sudo unzip -d /opt/gradle /tmp/gradle-6.2.2-bin.zip

Step 3: Setting Up Environment Variables

PATH Environment variable must include the Gradle directory. So, make a new file with the name gradle.sh under the /etc/profile.d/ directory.

sudo nano /etc/profile.d/gradle.sh

After it paste the below data into the file.

export GRADLE_HOME=/opt/gradle/gradle-6.2.2
export PATH=${GRADLE_HOME}/bin:${PATH}

Then Save and close the file.

Run the given command to make your script executable

sudo chmod +x /etc/profile.d/gradle.sh

After it load the Environment variables by typing

source /etc/profile.d/gradle.sh

As we’ve all done, so check the version of Installed Gradle to verify our Installation.

gradle -v

Output:

gradle version how to install gradle 6.2.2

So, this is how you can Install Gradle on your CentOS 8.

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

How to install PHP 8 on CentOS 8?

Hello, friends. This post will help you install PHP 8 on CentOS 8. The procedure is quite simple. PHP 8 has seen the light and...

PHP 8.0 available

PHP is one of the easiest open source programming languages to learn. Similarly, PHP is very popular and suitable for website development and can...

How to install PHP 8 on Ubuntu 20.04 / Debian 10?

Hello, friends. In this post, you will learn how to install PHP 8 on Ubuntu 20.04 / Debian 10. This way, you will be...

Learn how to control the volume of Windows using the mouse wheel.

Hi! Windows recently celebrated its 35th anniversary. Therefore, it is one of the longest lasting and most used systems currently. On the other hand,...

Install Nim programming language on Ubuntu 20.04 / Debian 10

Nowadays, almost everything is done with the help of a computer and a program. And the programs are made through a programming language. That...
x