gradlew - How do I provide credentials for Gradle Wrapper without embedding them in my project's gradle-wrapper.properties file? -


in order bootstrap gradle-wrapper, need pull gradle distribution artifactory requires http basic-auth. there's no way build environment access outside world - blocked corporate proxy. problem how provide credentials gradle can bootstrap.

the gradle documentation suggests putting username & password gradle-werapper.properties.

if put gradle-wrapper.properties project has access source code would have access credentials. alternatively, if put gradle-wrapper.properties file build image of builds tied same credentials. neither of these acceptable.

what i'd rather have gradle wrapper pick it's credentials environment variables. run-time environment makes easy provide credentials in right way - there way make gradle consume credentials environment variable?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -