Skip to content

Commit 6907663

Browse files
committed
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 <[email protected]>
1 parent dca96a5 commit 6907663

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tunnel/build.gradle.kts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,8 @@ publishing {
117117
name = "sonatype"
118118
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
119119
credentials {
120-
username = providers.gradleProperty("SONATYPE_USER")
121-
.orElse(providers.environmentVariable("SONATYPE_USER"))
122-
.orNull
123-
password = providers.gradleProperty("SONATYPE_PASSWORD")
124-
.orElse(providers.environmentVariable("SONATYPE_PASSWORD"))
125-
.orNull
120+
username = providers.environmentVariable("SONATYPE_USER").orNull
121+
password = providers.environmentVariable("SONATYPE_PASSWORD").orNull
126122
}
127123
}
128124
}

0 commit comments

Comments
 (0)