I'm trying to dynamically pass in credentials into gradle.properties through CLI so the gradle-wrapper.properties can read them rather than hardcoding in my own credentials.
Here is what I'm currently trying to do:
systemProp.gradle.wrapperUser=${ENV_USERNAME}
systemProp.gradle.wrapperPassword=${ENV_PASSWORD}
Unfortunately, this doesn't work, but if I put my own credentials like so:
systemProp.gradle.wrapperUser=abc@xyz.com
systemProp.gradle.wrapperPassword=password123
It accepts them and I can download the files.
I followed the gradle docs (https://docs.gradle.org/current/userguide/gradle_wrapper.html#customizing_wrapper), but so far no luck.