Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to beta09 and re-enable unit tests finally #153

Merged
merged 1 commit into from Sep 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)
}