diff options
-rw-r--r-- | gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt | 4 | ||||
-rw-r--r-- | integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt index 587f4b88..4fdbf0ce 100644 --- a/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt +++ b/gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt @@ -537,6 +537,10 @@ abstract class KspTaskJvm : KotlinCompile(KotlinJvmOptionsImpl()), KspTask { // * It doesn't consider private / internal changes when computing dirty sets. // * It compiles iteratively; Sources can be compiled in different rounds. incremental = false + + // Mute a warning from ScriptingGradleSubplugin, which tries to get `sourceSetName` before this task is + // configured. + sourceSetName.set("main") } override fun setupCompilerArgs( diff --git a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt index f30b86ef..35c90083 100644 --- a/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt +++ b/integration-tests/src/test/kotlin/com/google/devtools/ksp/test/KMPImplementedIT.kt @@ -90,6 +90,8 @@ class KMPImplementedIT { result.task(":workload:kspKotlinMingwX64")?.outcome == TaskOutcome.SUCCESS || result.task(":workload:kspKotlinMingwX64")?.outcome == TaskOutcome.SKIPPED ) + + Assert.assertFalse(result.output.contains("kotlin scripting plugin:")) } @Test |