Skip to content

Commit ee69f73

Browse files
committed
chore: Make build script compatible with KSP v2 (v3)
1 parent f9c6f23 commit ee69f73

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ kotlin {
384384
// https://github.com/google/ksp/issues/567
385385
val compileKotlinRegex = "^compile.*Kotlin.*".toRegex()
386386
val kspKotlinRegex = "^ksp.*Kotlin.*".toRegex()
387-
tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>>().configureEach {
387+
tasks.configureEach {
388388
val kspCommonTaskName = "kspCommonMainKotlinMetadata"
389-
if (kspCommonTaskName != name) {
389+
if (kspCommonTaskName == name) {
390390
return@configureEach
391391
}
392392
if (compileKotlinRegex.matches(name) || kspKotlinRegex.matches(name)) {

0 commit comments

Comments
 (0)