From 523c6f7f2c94a6c474f1d93efdbf4a0b9de7565e Mon Sep 17 00:00:00 2001 From: Ting-Yuan Huang Date: Fri, 22 Nov 2024 13:32:28 -0800 Subject: [PATCH] KSP2: clean up legacy incremental code which was an lefe-over when moving to IncrementalGlobalSearchScope. It also causes a problem when users wire generated outputs to source sets. (cherry picked from commit d09557921bc4c8ab1595eb6f275b0dbbc7be95f6) --- .../com/google/devtools/ksp/impl/KotlinSymbolProcessing.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/KotlinSymbolProcessing.kt b/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/KotlinSymbolProcessing.kt index 083d4fcda3..bf9f6ae92e 100644 --- a/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/KotlinSymbolProcessing.kt +++ b/kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/KotlinSymbolProcessing.kt @@ -218,9 +218,6 @@ class KotlinSymbolProcessing( if (kspConfig is KSPJvmConfig) { roots.addAll(kspConfig.javaSourceRoots) } - roots.forEach { - it.mkdirs() - } addSourceRoots(roots.map { it.toPath() }) }.apply(::addModule)