Difference between revisions of "Gradle"

 
Line 1: Line 1:
 
[[Category:Linux]]
 
[[Category:Linux]]
 
[[Category:Development]]
 
[[Category:Development]]
 +
 +
This is a summary of the official Gradle documentation available at: http://gradle.org/docs/current/userguide/installation.html
  
  

Latest revision as of 19:54, 24 April 2015


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.