Skip to content

Commit 9f38e14

Browse files
committed
More sign fixes
1 parent 0ddf25f commit 9f38e14

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

publish.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -80,16 +80,17 @@ signing {
8080
def signingKey = System.getenv("SIGNING_KEY")
8181
def signingPassword = System.getenv("SIGNING_PASSWORD")
8282
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
83-
}
84-
85-
publishing.publications.configureEach {
86-
signing.sign(this)
83+
sign(publishing.publications)
8784
}
8885

8986
tasks.withType(Sign) {
9087
onlyIf { isReleaseBuild() && (System.getenv("SIGNING_KEYID") != null) }
9188
}
9289

90+
tasks.withType(AbstractPublishToMaven) {
91+
dependsOn(tasks.withType(Sign))
92+
}
93+
9394
tasks.register('publishMac') {
9495
dependsOn 'publishIosArm64PublicationToMavenRepository'
9596
dependsOn 'publishIosSimulatorArm64PublicationToMavenRepository'

0 commit comments

Comments
 (0)