We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b36f7ab commit 6ad8b12Copy full SHA for 6ad8b12
1 file changed
publishing-plugins/src/main/kotlin/mvn-publish.gradle.kts
@@ -122,6 +122,10 @@ tasks.getByName("publish") {
122
dependsOn("build")
123
}
124
125
+tasks.matching { it.name.startsWith("publish") && it.name.contains("Publication") }.configureEach {
126
+ mustRunAfter(tasks.matching { it.name.startsWith("sign") })
127
+}
128
+
129
tasks.getByName("publishToMavenLocal") {
130
131
@@ -132,7 +136,10 @@ tasks.getByName("publishToSonatype") {
132
136
133
137
tasks.whenTaskAdded {
134
138
if (name.startsWith("publishTestPublicationTo")) {
135
- dependsOn("bundleReleaseAar", "signTestPublication")
139
+ dependsOn("bundleReleaseAar")
140
+ }
141
+ if (name.startsWith("sign") && name.contains("Publication")) {
142
+ mustRunAfter("bundleReleaseAar")
143
144
145
0 commit comments