Skip to content

Commit

Permalink
Update kotlinCompileTesting to v0.3.0 (#451)
Browse files Browse the repository at this point in the history
* Update kotlinCompileTesting to v0.3.0

* Updates

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zac Sweers <[email protected]>
  • Loading branch information
renovate[bot] and ZacSweers authored Jul 18, 2023
1 parent b260d84 commit d4ec3d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -518,7 +519,7 @@ class MoshiSealedSymbolProcessorProviderTest {

private fun compile(
vararg sourceFiles: SourceFile,
): KotlinCompilation.Result {
): CompilationResult {
return prepareCompilation(*sourceFiles).compile()
}
}

0 comments on commit d4ec3d2

Please sign in to comment.