Skip to content

Commit 9bc7baf

Browse files
authored
Correct build script to use empty string as default value (#7)
Resolves #2
1 parent fa7fd88 commit 9bc7baf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

buildSrc/src/main/kotlin/convention.publication.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ if (secretPropsFile.exists()) {
2121
ext[name.toString()] = value
2222
}
2323
} else {
24-
ext["signing.keyId"] = System.getenv("SIGNING_KEY_ID")
25-
ext["signing.password"] = System.getenv("SIGNING_PASSWORD")
26-
ext["signing.keys"] = System.getenv("SIGNING_SECRET_KEY")
27-
ext["ossrhUsername"] = System.getenv("OSSRH_USERNAME")
28-
ext["ossrhPassword"] = System.getenv("OSSRH_PASSWORD")
24+
ext["signing.keyId"] = System.getenv("SIGNING_KEY_ID") ?: ""
25+
ext["signing.password"] = System.getenv("SIGNING_PASSWORD") ?: ""
26+
ext["signing.keys"] = System.getenv("SIGNING_SECRET_KEY") ?: ""
27+
ext["ossrhUsername"] = System.getenv("OSSRH_USERNAME") ?: ""
28+
ext["ossrhPassword"] = System.getenv("OSSRH_PASSWORD") ?: ""
2929
}
3030

3131
val javadocJar by tasks.registering(Jar::class) {

0 commit comments

Comments
 (0)