eygraber
05/01/2022, 6:15 AMdetektJvmMain
I get the following warning:
Execution optimizations have been disabled for task ':samples:kotlin-inject:detektJvmMain' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/home/eli/workspace/portal/samples/kotlin-inject/build/generated/ksp/jvm/jvmMain/kotlin'. Reason: Task ':samples:kotlin-inject:detektJvmMain' uses this output of task ':samples:kotlin-inject:kspKotlinJvm' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to <https://docs.gradle.org/7.4.2/userguide/validation_problems.html#implicit_dependency> for more details about this problem.
warning: classpath entry points to a non-existent location: /home/eli/workspace/portal/samples/kotlin-inject/build/generated/ksp/metadata/jvmMain/kotlin
I exclude generated ksp files from detekt using:
tasks.withType<Detekt>().configureEach {
exclude {
"/build/generated/ksp" in it.file.absolutePath
}
}
gammax
05/04/2022, 5:48 PMeygraber
05/04/2022, 5:49 PMgammax
05/04/2022, 5:51 PMexclude
has no effect because we changed how we collect the source sets.eygraber
05/04/2022, 6:08 PMgammax
06/15/2022, 10:52 PM