Gradle wrapper using password protected distributionUrl

Does anyone know if this is possible?

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

1 Like