gradle: don't encourage sticking credentials in files
We've only ever used this via environment variables, so keep it that way. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
dca96a52b4
commit
6907663f07
@ -117,12 +117,8 @@ publishing {
|
||||
name = "sonatype"
|
||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||
credentials {
|
||||
username = providers.gradleProperty("SONATYPE_USER")
|
||||
.orElse(providers.environmentVariable("SONATYPE_USER"))
|
||||
.orNull
|
||||
password = providers.gradleProperty("SONATYPE_PASSWORD")
|
||||
.orElse(providers.environmentVariable("SONATYPE_PASSWORD"))
|
||||
.orNull
|
||||
username = providers.environmentVariable("SONATYPE_USER").orNull
|
||||
password = providers.environmentVariable("SONATYPE_PASSWORD").orNull
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user