Skip to content

Commit bd1a8fd

Browse files
ting-yuanKSP Auto Pick
authored andcommitted
Enable KSP2 by default
(cherry picked from commit 39cd86c)
1 parent cd4acba commit bd1a8fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import javax.inject.Inject
2828

2929
abstract class KspExtension @Inject constructor(project: Project) {
3030
/**
31-
* Enables or disables KSP 2, defaults to the `ksp.useKsp2` gradle property or `false` if that's not set.
31+
* Enables or disables KSP 2, defaults to the `ksp.useKSP2` gradle property or `true` if that's not set.
3232
*
3333
* This API is temporary and will be removed once KSP1 is removed.
3434
*/

gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle/KspSubplugin.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class KspGradleSubplugin @Inject internal constructor(private val registry: Tool
214214
target.providers
215215
.gradleProperty("ksp.useKSP2")
216216
.map { it.toBoolean() }
217-
.orElse(false)
217+
.orElse(true)
218218
)
219219
kspConfigurations = KspConfigurations(target)
220220
registry.register(KspModelBuilder())

0 commit comments

Comments
 (0)