0

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.

Oliver Collins
  • 106
  • 1
  • 6

1 Answers1

0

Please set a proxy on IDE or read the doc Configuring an HTTP proxy using gradle

Amirhf
  • 380
  • 4
  • 16
  • Using proxy configurations will not solve my problem since I could not pass credentials dynamically, therefore I would have the same problem (Credentials would still have to be hard coded). – Oliver Collins Feb 08 '19 at 15:51
  • please test proxy on the android studio – Amirhf Feb 08 '19 at 20:22