Skip to content

Commit 4dfc9a6

Browse files
committed
Rename a variable in build script
1 parent 9d7b6df commit 4dfc9a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/build.gradle.kts

+4-4
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ tasks.dokkaHtml {
184184
}
185185
}
186186

187-
val properties = Properties().apply {
187+
val localProperties = Properties().apply {
188188
runCatching { rootProject.file("local.properties") }
189189
.getOrNull()
190190
.takeIf { it?.exists() ?: false }
@@ -194,11 +194,11 @@ val properties = Properties().apply {
194194
// For information about signing.* properties,
195195
// see comments on signing { ... } block below
196196
val environment: Map<String, String?> = System.getenv()
197-
extra["ossrhUsername"] = properties["ossrh.username"] as? String
197+
extra["ossrhUsername"] = localProperties["ossrh.username"] as? String
198198
?: environment["OSSRH_USERNAME"] ?: ""
199-
extra["ossrhPassword"] = properties["ossrh.password"] as? String
199+
extra["ossrhPassword"] = localProperties["ossrh.password"] as? String
200200
?: environment["OSSRH_PASSWORD"] ?: ""
201-
extra["githubToken"] = properties["github.token"] as? String
201+
extra["githubToken"] = localProperties["github.token"] as? String
202202
?: environment["GITHUB_TOKEN"] ?: ""
203203

204204
publishing {

0 commit comments

Comments
 (0)