Gradle : Installation On Linux and Mac


Gradle can be installed on an and run on any  Operating System and it required JDK and JRE installed on your machine.

Gradle Current Version: Gradle 6.3

Gradle Pre-Requisites

Your machine should have Java 8 or later versions of it.

java -version

if Java 8 is not installed and configured follow these steps in link: How to set java path of JDK/JRE?

Gradle Installation On Linux or Mac

  •  Download the latest Gradle Binary distribution for Linux  or Mac OS from this link: https://gradle.org/releases/
  •  Create a Gradle folder and unpack the zip file in this folder
    $ mkdir /opt/Gradle
    $ unzip -d /opt/Gradle gradle-6.3-bin.zip
    $ ls /opt/Gradle/gradle-6.3
    LICENSE  NOTICE  bin  getting-started.html  init.d  lib  media
  • Configure Your System Environment: Set PATH environment variable to include bin directory of unzipped Gradle.
    $ export PATH=$PATH:/opt/Gradle/gradle-6.3/bin
  •  Verify the Gradle installation and configuration by running below the Gradle command in the console.
    gradle -v
    ------------------------------------------------------------
    Gradle 6.3
    ------------------------------------------------------------

Here you have learned about Gradle installation and configuration in Linux and Mac OS. If you are facing any Gradle issue share your comments.

References

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s