Gradle

Revision as of 13:07, 8 April 2015 by WikiFreak (talk | contribs) (Created page with "Category:Linux Category:Development =Manual install= Download last version: http://gradle.org/downloads * Take the '''complete distribution''' package. ==Extracti...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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