Skip to content

Commit

Permalink
Fix findProperty (#14)
Browse files Browse the repository at this point in the history
Co-authored-by: hfhbd <[email protected]>
  • Loading branch information
hfhbd and hfhbd authored Feb 26, 2024
1 parent 1682d25 commit cca26e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gradle/build-logic/src/main/kotlin/setup.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ java {
}

signing {
val signingKey: String? = project.properties["signingKey"] as String?
val signingPassword: String? = project.properties["signingPassword"] as String?
if (signingKey != null) {
useInMemoryPgpKeys(signingKey, signingPassword)
val signingKey = project.providers.gradleProperty("signingKey")
val signingPassword = project.providers.gradleProperty("signingPassword")
if (signingKey.isPresent) {
useInMemoryPgpKeys(signingKey.get(), signingPassword.get())
sign(publishing.publications)
}
}
Expand Down

0 comments on commit cca26e6

Please sign in to comment.