Gradle
This is a summary of the official Gradle documentation available at: http://gradle.org/docs/current/userguide/installation.html
Manual install
Download last version: http://gradle.org/downloads
- Take the complete distribution package.
Extraction
Put it an easy to access folder: ~/dev/gradle
or /opt/gradle
unzip gradle-2.3-all.zip
mv gradle-2.3/ /opt/
ln -s /opt/gradle-2.3/ /opt/gradle
♦ Adjust the version number
Environment variable
You need to add an environment variable:
# Debian
vim /etc/profile
# Ubuntu
vim /etc/environment
Add:
GRADLE_HOME="/opt/gradle"
PATH="/usr/local/sbin: ... :$GRADLE_HOME/bin"
Apply changes:
# Debian
source /etc/profile
# Ubuntu
source /etc/environment
Check configuration
If everything is OK the following command should work:
gradle -version
Usage
If you are, like me, coming from the Maven world then the concepts of Gradle are easy to grasp.