Hello, Is it possible to configure gradle to use `...
# gradle
g
Hello, Is it possible to configure gradle to use
local.properties
(or other file) instead of
gradle.properties
(root or project) when looking for credentials to publish to maven? My question comes from here, vanniktech gradle-plugin (which fetches credentials here).
b
No, unless you read the file yourself See: https://github.com/gradle/gradle/issues/12283
h
Alternative you could use your ~/.gradle/gradle.properties file (or passing the properties as arguments/env)
g
I would prefer to have it under a
local.properties
by project instead of having it in a “global” one. It’s true that this values don’t change much (specially maven username/pwd) but others might. In the end it’s not critical (it’s my OCD 😛 asking for a friend), I can use CI to publish it, it’s safer actually.