installing gradle 1.0-m2 from a binary deb on ubuntu

NOTE: This DEB was upgraded to Gradle 1.0 Milestone 5 on November 6th, 2011.

Carrying on with this week’s theme, here’s a Binary DEB package for Gradle 1.0-milestone-2. On a newly installed Ubuntu 10.04 or 10.10, run the following commands to install Gradle:

sudo apt-get install python-software-properties
sudo add-apt-repository "deb lucid main"
sudo apt-get update
sudo apt-get install gradle

This package depends on java6-jdk which will, by default, install the OpenJDK 6. It will also drop a file in /etc/profile.d/ which configures GRADLE_HOME and adds GRADLE_HOME/bin to your PATH.