Skip to content

Commit

Permalink
Revert "Workaround signing task output issue"
Browse files Browse the repository at this point in the history
This reverts commit 00293b5.
  • Loading branch information
erikc5000 committed Jan 8, 2024
1 parent 00293b5 commit 035d011
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,6 @@ val isReleaseBuild get() = !version.toString().endsWith("SNAPSHOT")

tasks.withType<Sign>().configureEach {
onlyIf { isReleaseBuild }

// Workaround for https://youtrack.jetbrains.com/issue/KT-61313
val pubName = name.removePrefix("sign").removeSuffix("Publication")

// These tasks only exist for native targets, hence findByName() to avoid trying to find them for other targets

// Task ':linkDebugTest<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
tasks.findByName("linkDebugTest$pubName")?.let {
mustRunAfter(it)
}
// Task ':compileTestKotlin<platform>' uses this output of task ':sign<platform>Publication' without declaring an explicit or implicit dependency
tasks.findByName("compileTestKotlin$pubName")?.let {
mustRunAfter(it)
}
}

publishing {
Expand Down

0 comments on commit 035d011

Please sign in to comment.