Skip to content

Commit

Permalink
gradle: don't sign packages on SNAPSHOT builds
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Aug 18, 2024
1 parent 069b296 commit 2f17b1b
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,14 @@ subprojects {
}
}

configure<SigningExtension> {
useInMemoryPgpKeys(
signingKey,
signingPassword
)
sign(publishing.publications["maven"])
if (isReleaseBuild) {
configure<SigningExtension> {
useInMemoryPgpKeys(
signingKey,
signingPassword
)
sign(publishing.publications["maven"])
}
}

tasks {
Expand Down Expand Up @@ -172,11 +174,6 @@ subprojects {
from(named("dokkaJavadoc"))
}

withType<Sign> {
val signingKey: String? by project
onlyIf { signingKey != null }
}

}

}
Expand Down

0 comments on commit 2f17b1b

Please sign in to comment.