Skip to content

Commit

Permalink
Rename a variable in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
mahozad committed Jul 5, 2024
1 parent 9d7b6df commit 4dfc9a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ tasks.dokkaHtml {
}
}

val properties = Properties().apply {
val localProperties = Properties().apply {
runCatching { rootProject.file("local.properties") }
.getOrNull()
.takeIf { it?.exists() ?: false }
Expand All @@ -194,11 +194,11 @@ val properties = Properties().apply {
// For information about signing.* properties,
// see comments on signing { ... } block below
val environment: Map<String, String?> = System.getenv()
extra["ossrhUsername"] = properties["ossrh.username"] as? String
extra["ossrhUsername"] = localProperties["ossrh.username"] as? String
?: environment["OSSRH_USERNAME"] ?: ""
extra["ossrhPassword"] = properties["ossrh.password"] as? String
extra["ossrhPassword"] = localProperties["ossrh.password"] as? String
?: environment["OSSRH_PASSWORD"] ?: ""
extra["githubToken"] = properties["github.token"] as? String
extra["githubToken"] = localProperties["github.token"] as? String
?: environment["GITHUB_TOKEN"] ?: ""

publishing {
Expand Down

0 comments on commit 4dfc9a6

Please sign in to comment.