Skip to content

Commit 6ad8b12

Browse files
committed
fix release issue
1 parent b36f7ab commit 6ad8b12

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

publishing-plugins/src/main/kotlin/mvn-publish.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ tasks.getByName("publish") {
122122
dependsOn("build")
123123
}
124124

125+
tasks.matching { it.name.startsWith("publish") && it.name.contains("Publication") }.configureEach {
126+
mustRunAfter(tasks.matching { it.name.startsWith("sign") })
127+
}
128+
125129
tasks.getByName("publishToMavenLocal") {
126130
dependsOn("build")
127131
}
@@ -132,7 +136,10 @@ tasks.getByName("publishToSonatype") {
132136

133137
tasks.whenTaskAdded {
134138
if (name.startsWith("publishTestPublicationTo")) {
135-
dependsOn("bundleReleaseAar", "signTestPublication")
139+
dependsOn("bundleReleaseAar")
140+
}
141+
if (name.startsWith("sign") && name.contains("Publication")) {
142+
mustRunAfter("bundleReleaseAar")
136143
}
137144
}
138145

0 commit comments

Comments
 (0)