The only documentation I’ve found so far requires invoking the addCredentials method on CredentialsStore with plain text principals and credentials. As this is somewhat undesirable, I’m looking for a way to prompt for the credentials if the artifact is not in the local cache (or is a SNAPSHOT requiring an update). I suppose I have two questions:
1.) Does anyone already have a reliable way of dealing with protected repositories that doesn’t require plain text passwords in the build script or init.gradle?
2.) How would one hook into the dependency resolution process such that after the local cache has been consulted, but before an ivy download occurs, I can prompt for a password?
My current (undesirable) solution is to prompt for the password in init.gradle, but this asks for the password regardless of whether or not it will actually be needed.