Skip to content

Commit e62b4ab

Browse files
authored
Correct the path of secretKeyRingFile (#368)
* Correct the path of secretKeyRingFile * Consider that the "signing.secretKeyRingFile" property can be null * Polish * Remove debug code
1 parent 9b34f88 commit e62b4ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ plugins {
88

99
val encoding: String by project
1010
val isSnapshot = project.version.toString().endsWith("SNAPSHOT")
11+
val secretKeyRingFile: String? =
12+
findProperty("signing.secretKeyRingFile")?.toString()?.let {
13+
if (it.isEmpty()) null
14+
else file(it).absolutePath
15+
}
1116

1217
allprojects {
1318
val replaceVersionJava by tasks.registering {
@@ -38,6 +43,8 @@ subprojects {
3843
apply(plugin = "com.diffplug.gradle.spotless")
3944
apply(plugin = "de.marcphilipp.nexus-publish")
4045

46+
extra["signing.secretKeyRingFile"] = secretKeyRingFile
47+
4148
val compileJava by tasks.existing(JavaCompile::class) {
4249
dependsOn(tasks.named("replaceVersionJava"))
4350
options.encoding = encoding

0 commit comments

Comments
 (0)