Skip to content

Commit fd792af

Browse files
committed
Throw runtime error if ksp2 is disabled
1 parent f82a0b4 commit fd792af

File tree

1 file changed

+1
-1
lines changed
  • gradle-plugin/src/main/kotlin/com/google/devtools/ksp/gradle

1 file changed

+1
-1
lines changed

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
@@ -132,7 +132,7 @@ class KspGradleSubplugin @Inject internal constructor(private val registry: Tool
132132
val useKsp2 = project.extensions.getByType(KspExtension::class.java).useKsp2.get()
133133

134134
if (useKsp2.not()) {
135-
project.logger.error(
135+
throw RuntimeException(
136136
"KSP1 is no longer available. Please use KSP2 instead and do not explicitly set ksp.useKsp2 to false " +
137137
"via the DSL or the Gradle property please"
138138
)

0 commit comments

Comments
 (0)