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:
Jason A. Donenfeld 2023-05-03 14:19:19 +02:00
parent dca96a52b4
commit 6907663f07

View File

@ -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
}
}
}