Skip to content

Commit

Permalink
one more potential ix of publishing scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanusMokrassar committed Dec 9, 2023
1 parent 1d7e42b commit ca909f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions jvm.publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ if (project.hasProperty("signing.gnupg.keyName")) {
// Workaround to make android sign operations depend on signing tasks
project.getTasks().withType(AbstractPublishToMaven.class).configureEach {
def signingTasks = project.getTasks().withType(Sign.class)
mustRunAfter(signingTasks)
shouldRunAfter(signingTasks)
}
// Workaround to make test tasks use sign
project.getTasks().withType(Sign.class).configureEach { signTask ->
Expand All @@ -126,12 +126,12 @@ if (project.hasProperty("signing.gnupg.keyName")) {
// Task ':linkDebugTest<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
def debugTestTask = tasks.findByName("linkDebugTest$pubName")
if (debugTestTask != null) {
signTask.mustRunAfter(debugTestTask)
signTask.shouldRunAfter(debugTestTask)
}
// Task ':compileTestKotlin<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
def testTask = tasks.findByName("compileTestKotlin$pubName")
if (testTask != null) {
signTask.mustRunAfter(testTask)
signTask.shouldRunAfter(testTask)
}
}
}
6 changes: 3 additions & 3 deletions publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ if (project.hasProperty("signing.gnupg.keyName")) {
// Workaround to make android sign operations depend on signing tasks
project.getTasks().withType(AbstractPublishToMaven.class).configureEach {
def signingTasks = project.getTasks().withType(Sign.class)
mustRunAfter(signingTasks)
shouldRunAfter(signingTasks)
}
// Workaround to make test tasks use sign
project.getTasks().withType(Sign.class).configureEach { signTask ->
Expand All @@ -114,12 +114,12 @@ if (project.hasProperty("signing.gnupg.keyName")) {
// Task ':linkDebugTest<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
def debugTestTask = tasks.findByName("linkDebugTest$pubName")
if (debugTestTask != null) {
signTask.mustRunAfter(debugTestTask)
signTask.shouldRunAfter(debugTestTask)
}
// Task ':compileTestKotlin<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
def testTask = tasks.findByName("compileTestKotlin$pubName")
if (testTask != null) {
signTask.mustRunAfter(testTask)
signTask.shouldRunAfter(testTask)
}
}
}

0 comments on commit ca909f1

Please sign in to comment.