-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set username and password config by project local.properties or by parameters #798
Comments
I need the same capability, we are using basically, I need to provide a new properties file to the gradle plugin and it reads the variables from that file
|
Same, we have a lot of properties and creating an env variable for each of them is cumbersome. Instead, we have been just base64'ing and creating a local.properties file with all secrets on each ci deployment. Strange that manual overrides are not possible with this plugin. |
I've found a workaround only for signing with inMemory key. plugins {
signing
}
val signProperties = Properties().apply { load(rootProject.file("lib1.sign.properties").reader()) }
//lib1.sign.properties
//secretKeyId=***
//secretKeyPass=***
//secretInMemoryKey=***
signing {
useInMemoryPgpKeys(
signProperties.getProperty("secretKeyId"),
signProperties.getProperty("secretInMemoryKey"),
signProperties.getProperty("secretKeyPass")
)
} But there is no solution for mavenCentralUsername and mavenCentralPassword |
Now provided two ways to set username and password config. by ~/.gradle/gradle.properties or by system env.
But if want different project has different username and password settings, I found it so hard to do it.
The text was updated successfully, but these errors were encountered: