DevOps Simplified: Install Gradle on Windows & Linux in Minutes!

DevOps Simplified: Install Gradle on Windows & Linux in Minutes!

HomeOther ContentDevOps Simplified: Install Gradle on Windows & Linux in Minutes!
ChannelPublish DateThumbnail & View CountActions
Channel AvatarPublish Date not found Thumbnail
0 Views
Introduction to Maven and Gradle: Overview of Build Automation Tools, Key
Differences Between Maven and Gradle, Installation and Setup – Part 2

Struggling to set up Gradle for your DevOps projects? In this quick and easy tutorial, I’ll show you how to install Gradle on both Windows and Linux in just a few minutes! Whether you’re a beginner or a pro, this step-by-step guide will save you time and hassle.

Don’t forget to LIKE, COMMENT, and SUBSCRIBE for more DevOps tips and tutorials!

#DevOps #GradleTutorial #Windows #Linux #CodingTips #DevOpsTools #TechTutorial #Programming #SoftwareDevelopment #GradleInstall

Gradle Installation Steps for Linux:

1: Update Your System:
sudo apt update

2. Install required package:
sudo apt install unzip -y

3. Install OpenJDK:
sudo apt install default-jdk
java -version

4: Install Gradle Using Snap:
sudo apt install snapd -y
sudo snap install gradle –classic

5. Download Gradle:
wget https://services.gradle.org/distributions/gradle-8.1.1-bin.zip -P /tmp
sudo unzip -d /opt/gradle /tmp/gradle-*.zip

6. Configure the environment variables:
sudo nano /etc/profile.d/gradle.sh
Paste the following configuration:

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

OR

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

Note: Replace gradle-gradle-8.1.1 with the version of your gradle.
Save and exit.

Next, make the script executable by using chmod command like shown below:

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

gradle -v OR gradle –version

Please take the opportunity to connect and share this video with your friends and family if you find it useful.