Gradle 1.0 milestone 9 not in repo

(paulicka) #1

Christophers-MacBook-Pro:jtp-core christopher$ ./gradlew build install Downloading

Exception in thread “main”


at org.gradle.wrapper.Download.downloadInternal(


at org.gradle.wrapper.Install.createDist(

at org.gradle.wrapper.WrapperExecutor.execute(

at org.gradle.wrapper.GradleWrapperMain.main( Christophers-MacBook-Pro:jtp-core christopher$ emacs build.gradle

Christophers-MacBook-Pro:jtp-core christopher$ gradle wrapper The ‘urls’ property of the RepositoryHandler.mavenRepo() method is deprecated and will be removed in a future version of Gradle. You should use the ‘url’ property to define the core maven repository & the ‘artifactUrls’ property to define any additional artifact locations.

The problem is that gradle 1.0 milestone 9 isn’t in the So we cannot upgrade gradlew to milestone 9

(René Groeschke) #2

Hello Christopher, all you need to do is to update your file with the correct distribution URL to the milestone-9 release. A working file for m9 can look like this:


regards, René

(paulicka) #3

Sure…but I don’t have to do that for milestone 5, 6, or 7.

I do have to do it for 8a and 9.


(paulicka) #4

Plus, are generated by the gradle wrapper task. So that change will get blown away the next time I update.

What’s the right way to do this?

(René Groeschke) #5

Hey, now I get the problem. You mean after running the wrapper task you have to manually modify the distribution URL right? This was a possible breaking change in the gradle 1.0-m8 distribution. As noted in the migration guide at you have to run the wrapper task with m8 or later to get rid of the manual modification of the distribution url.

I personally prefer to run the wrapper task only once when I introduce the wrapper in my project and remove the wrapper task from my build file after that. For upgrading to a newer version of gradle I just modify the distribution URL in the wrapper properties instead of rerunning the wrapper task.

Hope that helps, regards, René