at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
at org.gradle.wrapper.Download.downloadInternal(Download.java:49)
at org.gradle.wrapper.Download.download(Download.java:37)
at org.gradle.wrapper.Install.createDist(Install.java:58)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:117)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:53) 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 repo.gradle.org So we cannot upgrade gradlew to milestone 9
Hello Christopher, all you need to do is to update your gradle-wrapper.properties file with the correct distribution URL to the milestone-9 release. A working gradle-wrapper.properties file for m9 can look like this:
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.