How to install Gradle on Ubuntu 10.10

Download zip file from http://www.gradle.org/downloads.html and unzip to folder

$ sudo unzip gradle-1.0-milestone-3-all.zip -d /opt/gradle/

Edit PATH in the environment file

$ sudo nano /etc/environment

Add the following to the environment file

PATH="... :$GRADLE_HOME/bin"
GRADLE_HOME="/opt/gradle/gradle-1.0-milestone-3"

Reload environment variables

source /etc/environment

Add symbolic links to the usr/bin folder

$ sudo ln -sf /opt/gradle/gradle-1.0-milestone-3/bin/* /usr/bin/.

Open a new terminal. Test installation

$ gradle -version
------------------------------------------------------------
Gradle 1.0-milestone-3
------------------------------------------------------------

Gradle build time: Monday, 25 April 2011 5:40:11 PM EST
Groovy: 1.7.10
Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
Ivy: 2.2.0
JVM: 1.6.0_20 (Sun Microsystems Inc. 19.0-b09)
OS: Linux 2.6.35-30-generic-pae i386
This entry was posted in Ubuntu. Bookmark the permalink.

Comments are closed.