Skip to content

Commit 639b142

Browse files
authored
Do not sign artifacts that aren't going to be published (#48)
1 parent 678b0ef commit 639b142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-logic/src/main/kotlin/ckbuild.publication.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ signing.isRequired = false
5353
// and so we need to manually create task dependencies to make Gradle happy
5454
val javadocJar by tasks.registering(Jar::class) { archiveClassifier.set("javadoc") }
5555
tasks.withType<Sign>().configureEach { dependsOn(javadocJar) }
56-
tasks.withType<AbstractPublishToMaven>().configureEach { dependsOn(tasks.withType<Sign>()) }
56+
tasks.withType<AbstractPublishToMaven>().configureEach { mustRunAfter(tasks.withType<Sign>()) }
5757
publishing.publications.withType<MavenPublication>().configureEach { artifact(javadocJar) }

0 commit comments

Comments
 (0)