Gradle in Ubuntu for Launchpad

Gradle requires a Java JDK to be installed. Gradle requires a JDK 1.5 or higher. Gradle ships with its own Groovy library, therefore no Groovy needs to be installed. Any existing Groovy installation is ignored by Gradle.

Gradle uses whichever JDK it finds in your path (to check, use java -version). Alternatively, you can set the JAVA_HOME environment variable to point to the install directory of the desired JDK.

So make sure that you have Java JDK installed, then head to Gradle's Website to download Gradle, and any other info that you may need.

Or, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update
sudo apt-get install gradle

Source:Gradle


sudo add-apt-repository ppa:cwchien/gradle
sudo apt-get update

This is correct answer, but before make sudo apt-get install gradle, do:

sudo apt-cache search gradle

and next install latest version from new repo. In my case it:

sudo apt-get install gradle-1.9

it work's! (if you don't tell, what version you need, it install gradle(1.4) from main repo, and error will be with you...).


Apparently its possible to add a PPA as a dependency to a PPA and thus including Gradle.

https://help.launchpad.net/Packaging/PPA/BuildingASourcePackage#Dependencies