On Jul 16, 2009, at 3:17 PM, spa wrote:


Hello,

I want to use the gradle wrapper with Bamboo.

- In my svn, I have:

project-root/build.gradle

project-root/gradlew
project-root/gradlew.bat

project-root/wrapper/gradle-wrapper.jar
project-root/wrapper/gradle-wrapper.properties

project-root/wrapper/dists/gradle-0.6-bin.zip

- Content of gradle-wrapper.properties:
#Thu Jul 16 14:45:46 CEST 2009
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
distributionVersion=0.6
zipStorePath=wrapper/dists
urlRoot=http\://dist.codehaus.org/gradle
distributionName=gradle
distributionClassifier=bin

I am wondering why, when executing a gradle task, it tries to download the
gradle distribution zip from the Internet, as it is already in
wrapper/dists.

Any help welcome,

Apologies for the late reply.

Have also a look at the Javadoc of the wrapper task: 
http://gradle.org/0.7/docs/javadoc/org/gradle/api/tasks/wrapper/Wrapper.html

You need to tell Gradle where to look for the Gradle distribution and where to put it. You have specified the distribution path, which is a relative path to the distribution base. You distribution base is GRADLE_USER_HOME. You need to change it to:

wrapper {
   ...
   distributionBase = PathBase.PROJECT
}

Then everything should work.

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to