Gradle wrapper using password protected distributionUrl

Does anyone know if this is possible?

I would like to put the gradle distribution (gradle-2.14-bin.zip) in our local password protected artifactory instance and use that from a gradle wrapper. I can set the distributionURL in the gradle-wrapper.properties file but don’t know how to pass the username/password correctly, so I get a http 401 status. Any advice would be welcome.
Thanks.

1 Like