Skip to content

Commit

Permalink
Use afterEvaluate in build files
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergej Shafarenka committed Jul 29, 2024
1 parent d07d3e8 commit 7bbe614
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build-plugins/src/main/kotlin/module.publication.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ private fun description(value: String) {
}
}
}
applyDefaultTaskDependencies()
}

private fun applyDefaultTaskDependencies() {
project.afterEvaluate {
// https://youtrack.jetbrains.com/issue/KT-61313
tasks.withType<Sign>().configureEach {
val publicationName = name.removePrefix("sign").removeSuffix("Publication")
Expand Down

0 comments on commit 7bbe614

Please sign in to comment.