From 6907663f07fff290e8756c2700a7f6654658cbab Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 3 May 2023 14:19:19 +0200 Subject: 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 --- tunnel/build.gradle.kts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tunnel') diff --git a/tunnel/build.gradle.kts b/tunnel/build.gradle.kts index 0922d602..51ae52fe 100644 --- a/tunnel/build.gradle.kts +++ b/tunnel/build.gradle.kts @@ -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 } } } -- cgit v1.2.3