Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

It appears that 13.04 doesn't have Gradle for some reason. I will need this for a project I'm building that will be build by Launchpad.

What do I need to do about this?

share|improve this question
add comment

3 Answers

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

share|improve this answer
    
Well I could use that on my local machine but would that work on Launchpad? How would I tell it to download Gradle before starting the build. –  Marlin Cremers Aug 3 '13 at 10:40
    
I don't think that you can do that. I think that you need to build locally, and then add to Launchpad. –  Mitch Aug 3 '13 at 10:47
    
Why did you unaccept? :) –  Mitch Sep 19 '13 at 18:47
    
Because that would not work on Launchpad. In Launchpad you're able to add a PPA for build dependencies. So I added it and specified it as a build dependency on my package. I've added that as a answer to this question so others can see it too. –  Marlin Cremers Sep 20 '13 at 5:49
    
where is gradle home after running this commands? –  nazar_art Feb 3 at 0:59
show 1 more comment
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...).

share|improve this answer
add comment
up vote 2 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.