December 22, 2020 / Eternal Team
According to Wikipedia, Gradle is a build automation tool for multi-language software development. It controls the development process in the tasks of compilation and packaging to testing, deployment, and publishing.
Its main features are
Prerequisites
Gradle requires a Java JDK version 7 or higher to run Install Gradle in ubuntu machine,
Step: 1
Download and install Gradle,
$wget https://services.gradle.org/distributions/gradle-5.0-bin.zip
Step:2
Unpack the distribution First, create a directory and unzip the file
$sudo mkdir /opt/gradle
Extract the file to the newly created directory
unzip -d /opt/gradle gradle-5.0-bin.zip
You can view the directly it by below command,
$ls /opt/gradle/gradle-5.0
Step: 3
To run Gradle, first, add the environment variable GRADLE_HOME.
$export PATH=$PATH:/opt/gradle/gradle-5.0/bin
Step: 4
Verify the version,
$gradle -v
Congratulations, if you see something like that then, Gradle is successfully installed on your server.
Conclusion:
Gradle is an open-source build automation tool that is designed to be flexible enough to build almost any type of software and we saw how to install it in a ubuntu server.