diff --git a/gradle.properties b/gradle.properties index 24e9516d..f30109b8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,4 +2,4 @@ org.gradle.parallel=true kotlin.mpp.stability.nowarn=true kotlin.native.ignoreDisabledTargets=true org.gradle.jvmargs=-Xmx4G -ksp.useKSP2=false +ksp.useKSP2=true diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5aae7393..973b03c4 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -12,7 +12,7 @@ detekt-formatting = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", ksp = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" } kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" } kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } -kotlin-compile-testing = { module = "dev.zacsweers.kctfork:ksp", version = "0.4.0" } +kotlin-compile-testing = { module = "dev.zacsweers.kctfork:ksp", version = "0.5.0-alpha03" } kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version = "1.8.0-RC2" } kotlinx-metadata-jvm = { module = "org.jetbrains.kotlinx:kotlinx-metadata-jvm", version = "0.9.0" } kotlinx-atomicfu = { module = "org.jetbrains.kotlinx:atomicfu", version = "0.23.2" } diff --git a/kotlin-inject-compiler/test/src/main/kotlin/me/tatarka/inject/ProjectCompiler.kt b/kotlin-inject-compiler/test/src/main/kotlin/me/tatarka/inject/ProjectCompiler.kt index cfa66c53..09dbe57a 100644 --- a/kotlin-inject-compiler/test/src/main/kotlin/me/tatarka/inject/ProjectCompiler.kt +++ b/kotlin-inject-compiler/test/src/main/kotlin/me/tatarka/inject/ProjectCompiler.kt @@ -6,7 +6,7 @@ import com.google.devtools.ksp.processing.SymbolProcessorProvider import com.tschuchort.compiletesting.CompilationResult import com.tschuchort.compiletesting.KotlinCompilation import com.tschuchort.compiletesting.SourceFile -import com.tschuchort.compiletesting.kspArgs +import com.tschuchort.compiletesting.kspProcessorOptions import com.tschuchort.compiletesting.kspWithCompilation import com.tschuchort.compiletesting.symbolProcessorProviders import me.tatarka.inject.compiler.Options @@ -48,7 +48,7 @@ class ProjectCompiler( sources = sourceFiles when (target) { Target.KSP -> { - options?.toMap()?.let { kspArgs.putAll(it) } + options?.toMap()?.let { kspProcessorOptions.putAll(it) } symbolProcessorProviders = mutableListOf().apply { add(InjectProcessorProvider()) addAll(symbolProcessors)