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.
You must log in to post a comment.