We are using the built-in support to declare JFrog...
# community-support
e
We are using the built-in support to declare JFrog artifactory dependencies with the gradle wrapper to ensure our builds run with a specific version. One part of that is to have the credentials in the user gradle.properties file, like
Copy code
systemProp.gradle.artifactory_whatever_com.wrapperUser=my-user@whatever
systemProp.gradle.artifactory_whatever_com.wrapperPassword=my-artifactory-token
That works nicely, but the consequence is: there is a secret sitting in a plain text file on every machine that is used for building with gradle. And that part feels pretty “wrong” in 2026. So, just wondering: are there any alternatives to such a setup? I can only think of passing the token on the command line after retrieving it from some sort of fault … but that still leaves “visible” to other processes. And beyond that: does anyone know if there are plans to modernize this approach? Maybe something like
systemProp.gradle.artifactory_whatever_com.wrapperPassword=some_call_back()
where the user can provide a script in the gradle/wrapper folder that gets invoked automatically if present? So instead of relying on a plaintext token, code gets executed that knows how to retrieve the token?
I don't know of any first-party solution or supported community solution now. you could write a custom ValueSource which loads the password from some encrypted store, but credentials aren't lazy properties (yet) and it won't work for plugin repositories, so that's not great…