You need to have the following prerequisites installed:
Tested on Ubuntu 12.10 Quantal. Other versions of Ubuntu might also work.
apt-get install openjdk-8-jdk git
Tested on CentOS XXX. Other versions of CentOS might also work.
yum install XXX YYY ZZZ
You can just download the gradle binary distribution from the http://www.gradle.org/downloads website. At the time of this writing (mid-2014) the eclipse gradle plugin did not work with version 2.*. Until the eclipse plugin is fixed we recommend the usage of gradle version 1.12.
In Ubuntu, gradle is relatively old at the time of this writing (mid-2014), i.e. only gradle 1.5 is supported. There is a ppa for newer gradle at https://launchpad.net/~cwchien/+archive/ubuntu/gradle
sudo add-apt-repository ppa:cwchien/gradle sudo apt-get update sudo apt-get install gradle