Skip to content

Commit

Permalink
Fix dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
deusaquilus committed Feb 9, 2024
1 parent 0611482 commit 73e25fe
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions decomat-examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ dependencies {
add("kspCommonMainMetadata", project(":decomat-ksp"))
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
if (name != "kspCommonMainKotlinMetadata") {
dependsOn("kspCommonMainKotlinMetadata")
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile>().configureEach {
if (name != "kspCommonMainKotlinMetadata") {
dependsOn("kspCommonMainKotlinMetadata")
}
Expand All @@ -139,4 +145,4 @@ tasks.withType<AbstractTestTask>().configureEach {

ksp {
arg("measureDuration", "true")
}
}

0 comments on commit 73e25fe

Please sign in to comment.