File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
publishing-plugins/src/main/kotlin Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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+
125129tasks.getByName(" publishToMavenLocal" ) {
126130 dependsOn(" build" )
127131}
@@ -132,7 +136,10 @@ tasks.getByName("publishToSonatype") {
132136
133137tasks.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
You can’t perform that action at this time.
0 commit comments