Skip to content

Commit

Permalink
Deprecate blockOtherPlugins
Browse files Browse the repository at this point in the history
and dropping support of other compiler plugins in KSP's task.
  • Loading branch information
ting-yuan committed Sep 28, 2022
1 parent b04ce75 commit a634e55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -37,7 +37,8 @@ open class KspExtension {
commandLineArgumentProviders.add(arg)
}

open var blockOtherCompilerPlugins: Boolean = false
@Deprecated("KSP will stop supporting other compiler plugins in KSP's Gradle tasks after 1.0.8.")
open var blockOtherCompilerPlugins: Boolean = true

// Instruct KSP to pickup sources from compile tasks, instead of source sets.
// Note that it depends on behaviors of other Gradle plugins, that may bring surprises and can be hard to debug.
Expand Down
Expand Up @@ -59,7 +59,7 @@ class PlaygroundIT {
val gradleRunner = GradleRunner.create().withProjectDir(project.root)

File(project.root, "workload/build.gradle.kts")
.appendText("\nksp {\n blockOtherCompilerPlugins = true\n}\n")
.appendText("\nksp {\n blockOtherCompilerPlugins = false\n}\n")
gradleRunner.buildAndCheck("clean", "build")
gradleRunner.buildAndCheck("clean", "build")
project.restore("workload/build.gradle.kts")
Expand Down

0 comments on commit a634e55

Please sign in to comment.