Gradle is a Java build system. It uses a clean, simple configuration syntax and is used by Android as the default build system. For API development, Gradle is supported by Spring.
Installation is quick and simple. We are going to install a private copy so that root permissions are not required during development.
mkdir -p ~/opt/packages/gradle && cd $_ wget https://services.gradle.org/distributions/gradle-2.3-bin.zip unzip gradle-2.3-bin.zip
Next, we will create a symlink that provides a shorter path to the specific Gradle version. The symlink will allow us to upgrade Gradle later without changing any other configuration.
ln -s ~/opt/packages/gradle/gradle-2.3/ ~/opt/gradle
.profile file in vi, emacs, or gedit.
Paste the following at the bottom of your
# Gradle if [ -d "$HOME/opt/gradle" ]; then export GRADLE_HOME="$HOME/opt/gradle" PATH="$PATH:$GRADLE_HOME/bin" fi
Finally, source your
.profile and test gradle.
source ~/.profile which gradle gradle -version
Congratulations, you now have a working Gradle installation.
We specialize in helping professional developers, like you, expand your skill set. Our courses are focused on enabling you to learn everything necessary to use a new technology in a live, production application.
All courses are made with love in
Palo Alto, CA.
Subscribe to our newsletter