Skip to content

Commit

Permalink
Try afterEvaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
deusaquilus committed Jul 22, 2024
1 parent b01c499 commit f149105
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions decomat-examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,11 @@ if (project.hasProperty("platform") && project.property("platform") == "linux")
}
}

// find every task ending with SourcesJar and make it depend on kspCommonMainKotlinMetadata
tasks.matching { name.endsWith("SourcesJar") }.configureEach {
dependsOn("kspCommonMainKotlinMetadata")
afterEvaluate {
// find every task ending with SourcesJar and make it depend on kspCommonMainKotlinMetadata
tasks.matching { name.endsWith("SourcesJar") }.configureEach {
dependsOn("kspCommonMainKotlinMetadata")
}
}

// Add the kspCommonMainKotlinMetadata dependency to sourcesJar tasks if needed
Expand Down

0 comments on commit f149105

Please sign in to comment.