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"
|
name = "sonatype"
|
||||||
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||||
credentials {
|
credentials {
|
||||||
username = providers.gradleProperty("SONATYPE_USER")
|
username = providers.environmentVariable("SONATYPE_USER").orNull
|
||||||
.orElse(providers.environmentVariable("SONATYPE_USER"))
|
password = providers.environmentVariable("SONATYPE_PASSWORD").orNull
|
||||||
.orNull
|
|
||||||
password = providers.gradleProperty("SONATYPE_PASSWORD")
|
|
||||||
.orElse(providers.environmentVariable("SONATYPE_PASSWORD"))
|
|
||||||
.orNull
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user