Skip to content

Commit 2e724f9

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 4370059 commit 2e724f9

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
@@ -114,12 +114,8 @@ publishing {
114114
name = "sonatype"
115115
url = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
116116
credentials {
117-
username = providers.gradleProperty("SONATYPE_USER")
118-
.orElse(providers.environmentVariable("SONATYPE_USER"))
119-
.orNull
120-
password = providers.gradleProperty("SONATYPE_PASSWORD")
121-
.orElse(providers.environmentVariable("SONATYPE_PASSWORD"))
122-
.orNull
117+
username = providers.environmentVariable("SONATYPE_USER").orNull
118+
password = providers.environmentVariable("SONATYPE_PASSWORD").orNull
123119
}
124120
}
125121
}

0 commit comments

Comments
 (0)