Skip to content

Commit

Permalink
chore: apply kapt incremental execution failure workaround for all ka…
Browse files Browse the repository at this point in the history
…pt tasks
  • Loading branch information
vlsi committed Dec 30, 2023
1 parent 05c8659 commit aa22e93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/

import com.github.vlsi.gradle.dsl.configureEach
import org.jetbrains.kotlin.gradle.tasks.Kapt

plugins {
id("java-library")
Expand All @@ -36,6 +37,11 @@ plugins.withId("org.jetbrains.kotlin.jvm") {
"kapt"(platform(it))
}
}

tasks.configureEach<Kapt> {
// Workaround for https://youtrack.jetbrains.com/issue/KT-45329/IDE-KAPT-Number-of-loaded-files-in-snapshots-differs-when-using-Run-with-Coverage-and-project-has-Java-and-Kotlin-targets-with
inputs.property("wa.to.trigger.full.recompilation", "1")
}
}

tasks.configureEach<Jar> {
Expand Down
7 changes: 0 additions & 7 deletions src/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,3 @@ tasks.jar {
from("$rootDir/xdocs/images/logo.svg")
}
}

afterEvaluate {
tasks.named("kaptTestFixturesKotlin") {
// Workaround for https://youtrack.jetbrains.com/issue/KT-45329/IDE-KAPT-Number-of-loaded-files-in-snapshots-differs-when-using-Run-with-Coverage-and-project-has-Java-and-Kotlin-targets-with
inputs.property("wa.to.trigger.full.recompilation", "1")
}
}

0 comments on commit aa22e93

Please sign in to comment.