diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 039cf308..dd2971d1 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -20,7 +20,7 @@ incap = "1.0.0" jdk = "20" jvmTarget = "11" kotlin = "1.9.0" -kotlinCompileTesting = "0.2.1" +kotlinCompileTesting = "0.3.0" kotlinpoet = "1.12.0" ksp = "1.9.0-1.0.11" ktfmt = "0.44" diff --git a/moshi-ir/moshi-compiler-plugin/src/test/kotlin/dev/zacsweers/moshix/ir/compiler/MoshiIrVisitorTest.kt b/moshi-ir/moshi-compiler-plugin/src/test/kotlin/dev/zacsweers/moshix/ir/compiler/MoshiIrVisitorTest.kt index 15b29d0b..73f8b1db 100644 --- a/moshi-ir/moshi-compiler-plugin/src/test/kotlin/dev/zacsweers/moshix/ir/compiler/MoshiIrVisitorTest.kt +++ b/moshi-ir/moshi-compiler-plugin/src/test/kotlin/dev/zacsweers/moshix/ir/compiler/MoshiIrVisitorTest.kt @@ -16,6 +16,7 @@ package dev.zacsweers.moshix.ir.compiler import com.google.common.truth.Truth.assertThat +import com.tschuchort.compiletesting.CompilationResult import com.tschuchort.compiletesting.KotlinCompilation import com.tschuchort.compiletesting.KotlinCompilation.ExitCode.COMPILATION_ERROR import com.tschuchort.compiletesting.KotlinCompilation.ExitCode.OK @@ -1064,7 +1065,7 @@ class MoshiIrVisitorTest(private val useK2: Boolean) { return PluginOption(pluginId, key.optionName, value.toString()) } - private fun compile(vararg sourceFiles: SourceFile): KotlinCompilation.Result { + private fun compile(vararg sourceFiles: SourceFile): CompilationResult { return prepareCompilation(null, *sourceFiles).compile() } } diff --git a/moshi-sealed/codegen/src/test/kotlin/dev/zacsweers/moshix/sealed/codegen/ksp/MoshiSealedSymbolProcessorTest.kt b/moshi-sealed/codegen/src/test/kotlin/dev/zacsweers/moshix/sealed/codegen/ksp/MoshiSealedSymbolProcessorTest.kt index 392daee2..5d268dd4 100644 --- a/moshi-sealed/codegen/src/test/kotlin/dev/zacsweers/moshix/sealed/codegen/ksp/MoshiSealedSymbolProcessorTest.kt +++ b/moshi-sealed/codegen/src/test/kotlin/dev/zacsweers/moshix/sealed/codegen/ksp/MoshiSealedSymbolProcessorTest.kt @@ -16,6 +16,7 @@ package dev.zacsweers.moshix.sealed.codegen.ksp import com.google.common.truth.Truth.assertThat +import com.tschuchort.compiletesting.CompilationResult import com.tschuchort.compiletesting.KotlinCompilation import com.tschuchort.compiletesting.KotlinCompilation.ExitCode import com.tschuchort.compiletesting.SourceFile @@ -518,7 +519,7 @@ class MoshiSealedSymbolProcessorProviderTest { private fun compile( vararg sourceFiles: SourceFile, - ): KotlinCompilation.Result { + ): CompilationResult { return prepareCompilation(*sourceFiles).compile() } }