Difference between revisions of "Gradle"

(Created page with "Category:Linux Category:Development =Manual install= Download last version: http://gradle.org/downloads * Take the '''complete distribution''' package. ==Extracti...")
(No difference)

Revision as of 13:07, 8 April 2015


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