Skip to content

Commit

Permalink
manually have publish tasks depend on sign tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMcCloud committed Aug 14, 2023
1 parent d7babee commit f3b22ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vclib-openid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@ signing {
sign(publishing.publications)
}

val signTasks = tasks.filterIsInstance<Sign>()
tasks.filterIsInstance<AbstractPublishToMaven>().forEach { it.dependsOn(*signTasks.toTypedArray()) }
val signTasks = tasks.filter { it.name.startsWith("sign") }
tasks.filter {it.name.startsWith("publish")}.forEach { it.dependsOn(*signTasks.toTypedArray()) }

0 comments on commit f3b22ae

Please sign in to comment.