Skip to content

Commit

Permalink
Update to beta09 and re-enable unit tests finally (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Sep 3, 2021
1 parent 92bb7ba commit 4449cf2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 415 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Expand Up @@ -21,7 +21,7 @@ kotlinCompileTesting = "1.4.3"
kotlin = "1.5.30"
jvmTarget = "1.8"
kotlinpoet = "1.9.0"
ksp = "1.5.30-1.0.0-beta08"
ksp = "1.5.30-1.0.0-beta09"
ktlint = "0.41.0"
moshi = "1.12.0"
okhttp = "4.9.1"
Expand All @@ -31,8 +31,8 @@ retrofit = "2.9.0"
dokka = { id = "org.jetbrains.dokka", version = "1.5.0" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.17.0" }
spotless = { id = "com.diffplug.spotless", version = "5.14.2" }
kotlinBinaryCompatibilityValidator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.7.0" }
spotless = { id = "com.diffplug.spotless", version = "5.14.3" }
kotlinBinaryCompatibilityValidator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.7.1" }

[libraries]
asm = { module = "org.ow2.asm:asm", version = "9.2" }
Expand Down
3 changes: 1 addition & 2 deletions moshi-ksp/moshi-ksp/build.gradle.kts
Expand Up @@ -46,8 +46,7 @@ dependencies {
testImplementation(libs.truth)
testImplementation(libs.junit)
testImplementation(libs.kotlin.reflect)
// TODO re-enable with new release
// testImplementation(Dependencies.Testing.kspCompileTesting)
testImplementation(libs.kotlinCompileTesting)
testImplementation(libs.kotlinCompileTesting.ksp)
testImplementation(libs.kotlin.compilerEmbeddable)
}

This file was deleted.

Expand Up @@ -41,7 +41,6 @@ import kotlin.reflect.KVariance.INVARIANT
import kotlin.reflect.full.createType

/** Execute kotlinc to confirm that either files are generated or errors are printed. */
@Ignore("https://github.com/google/ksp/issues/427")
@RunWith(Parameterized::class)
class JsonClassSymbolProcessorTest(private val incremental: Boolean) {

Expand Down Expand Up @@ -326,7 +325,7 @@ class JsonClassSymbolProcessorTest(private val incremental: Boolean) {
)
assertThat(result.exitCode).isEqualTo(KotlinCompilation.ExitCode.COMPILATION_ERROR)
assertThat(result.messages).contains(
"@JsonClass can't be applied to expression: must be a Kotlin class"
"@JsonClass can't be applied to test.expression: must be a Kotlin class"
)
}

Expand Down
3 changes: 1 addition & 2 deletions moshi-sealed/codegen-ksp/build.gradle.kts
Expand Up @@ -37,8 +37,7 @@ dependencies {
testImplementation(libs.ksp)
testImplementation(libs.truth)
testImplementation(libs.junit)
// TODO re-enable with new release
// testImplementation(Dependencies.Testing.kspCompileTesting)
testImplementation(libs.kotlinCompileTesting)
testImplementation(libs.kotlinCompileTesting.ksp)
testImplementation(libs.kotlin.compilerEmbeddable)
}

0 comments on commit 4449cf2

Please sign in to comment.