How To Install Gradle on CentOS 8

Windows Articles

How to get Google Opinion Rewards in any Country

Greetings! Google Opinion Rewards is a cool app, which will allow you to earn credit, to spend it on the Google Play...

How to change the hostname on Ubuntu?

This simple tutorial will teach you how to change the hostname on Ubuntu. The steps we will tell you here will work...

How to install Screaming Frog SEO Spider on Ubuntu 20.04 / 18.04?

If you are working with blogs and content creation then you should know about SEO. Or in the best case, you have...

How to Configure a Firewall in Ubuntu 20.04 / Debian 10?

There is nothing safe from hackers on the Internet, however, we can implement security measures to be more protected against an attack. With this...

Gnome 3.38 available

Gnome OS is a Linux-based operating system, which has a huge domain in the Linux forums. On September 16, 2020, developers announced...

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 get Google Opinion Rewards in any Country

Greetings! Google Opinion Rewards is a cool app, which will allow you to earn credit, to spend it on the Google Play...

How to change the hostname on Ubuntu?

This simple tutorial will teach you how to change the hostname on Ubuntu. The steps we will tell you here will work...

How to install Screaming Frog SEO Spider on Ubuntu 20.04 / 18.04?

If you are working with blogs and content creation then you should know about SEO. Or in the best case, you have...

How to Configure a Firewall in Ubuntu 20.04 / Debian 10?

There is nothing safe from hackers on the Internet, however, we can implement security measures to be more protected against an attack. With this...

Gnome 3.38 available

Gnome OS is a Linux-based operating system, which has a huge domain in the Linux forums. On September 16, 2020, developers announced...
x