Skip to content

Commit

Permalink
Define explicit dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
e5l committed Oct 5, 2023
1 parent f081070 commit c7b9189
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions buildSrc/src/main/kotlin/Publication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,17 @@ fun Project.configurePublication() {
gpgAgentLock.unlock()
}
}

val publishLinuxX64PublicationToMavenRepository = tasks.findByName("publishLinuxX64PublicationToMavenRepository")
val signLinuxArm64Publication = tasks.findByName("signLinuxArm64Publication")
if (publishLinuxX64PublicationToMavenRepository != null && signLinuxArm64Publication != null) {
publishLinuxX64PublicationToMavenRepository.dependsOn(signLinuxArm64Publication)
}

val publishLinuxArm64PublicationToMavenRepository = tasks.findByName("publishLinuxArm64PublicationToMavenRepository")
val signLinuxX64Publication = tasks.findByName("signLinuxX64Publication")
if (publishLinuxArm64PublicationToMavenRepository != null && signLinuxX64Publication != null) {
publishLinuxArm64PublicationToMavenRepository.dependsOn(signLinuxX64Publication)
}
}
}

0 comments on commit c7b9189

Please sign in to comment.