How to Install and Configure Gradle


In this video, we describe how to install and configure Gradle on Linux, Mac and Windows.

Commands used:

Linux/Mac:
mkdir /opt/gradle
curl -L https://services.gradle.org/distributions/gradle-6.5-bin.zip –output gradle.zip
unzip -d /opt/gradle/ gradle.zip
apt install unzip
echo PATH=$PATH:/opt/gradle/gradle-6.5/bin > /etc/profile.d/gradle.sh
source /etc/profile.d/gradle.sh
gradle -v

Windows:
mkdir C:Gradle
curl -L https://services.gradle.org/distributions/gradle-6.5-bin.zip –output C:Gradlegradle.zip
navigate to the C:Gradle directory
right-clicking the file and selecting ā€œExtract All
Right-click ā€œThis PCā€ in the File Explorer and select ā€œPropertiesā€:
In the System menu, select Advanced system settings
In the System Properties dialog hit the ā€œEnvironment Variables…” button
Find ā€œPathā€ under the ā€œSystem variablesā€ header and select it and hit the ā€œEditā€ button
After that, hit the ā€œNewā€ button enter C:Gradlegradle-6.5bin then hit the ā€œOKā€ button to save the new variable
gradle -v

The related article for this article can be found here: https://www.liquidweb.com/kb/how-to-install-and-configure-gradle/

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ or to learn more about our Managed Applications,
visit: https://www.liquidweb.com/products/managed-wordpress/ or https://www.liquidweb.com/products/managed-woocommerce-hosting/

Video by: Justin Palmer


Duration: 00:03:24
Publisher: Liquid Web
You can watch this video also at the source.