Skip to content

Commit

Permalink
Update dependency org.jetbrains.kotlin.multiplatform to v2.1.0 (#185)
Browse files Browse the repository at this point in the history
* Update dependency org.jetbrains.kotlin.multiplatform to v2.1.0

* Fix toBooleanLenient

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: David Hoepelman <[email protected]>
  • Loading branch information
renovate[bot] and dhoepelman authored Dec 25, 2024
1 parent 71b8303 commit 5533752
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 43 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.gradle.internal.extensions.stdlib.capitalized
import org.jetbrains.kotlin.cli.common.toBooleanLenient
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
Expand All @@ -15,11 +14,11 @@ val projectLicenseUrl = "https://opensource.org/licenses/MIT"
val projectScmUrl = "https://github.com/konform-kt/konform.git"
val projectInceptionYear = 2018

val kotlinApiTarget = "1.7"
val kotlinApiTarget = "1.9"
val jvm = JvmTarget.JVM_1_8

/** The "CI" env var is a quasi-standard way to indicate that we're running on CI. */
val onCI: Boolean = System.getenv("CI")?.toBooleanLenient() ?: false
val onCI: Boolean = System.getenv("CI") == "true"

plugins {
alias(libs.plugins.kotest.multiplatform)
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[versions]
kotest = "5.9.1"
kotlin = "2.0.21"
kotlin = "2.1.0"
ktlint = "1.5.0"

[libraries]
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
kotest-framework-datatest = { module = "io.kotest:kotest-framework-datatest", version.ref = "kotest" }
kotest-framework-engine = { module = "io.kotest:kotest-framework-engine", version.ref = "kotest" }
kotest-runner-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kotest" }
kotlincompiletesting = { module = "com.github.tschuchortdev:kotlin-compile-testing", version = "1.6.0" }
kotlincompiletesting = { module = "dev.zacsweers.kctfork:core", version = "0.7.0" }

# Not actually used as dependency, but cause renovate to update ktlint
ktlint = { module = "com.pinterest.ktlint:ktlint-bom", version.ref = "ktlint" }
Expand Down
62 changes: 26 additions & 36 deletions kotlin-js-store/yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ class ValidationSubTypingCompilerTest {
}.compile()

result.exitCode shouldBe KotlinCompilation.ExitCode.COMPILATION_ERROR
result.messages shouldContain "Type mismatch: inferred type is Validation<Int> but Validation<Number> was expected"
result.messages shouldContain "Initializer type mismatch: expected 'io.konform.validation.Validation<kotlin.Number>', " +
"actual 'io.konform.validation.Validation<kotlin.Int>'"
}

@Test
Expand Down Expand Up @@ -86,6 +87,7 @@ class ValidationSubTypingCompilerTest {
}.compile()

result.exitCode shouldBe KotlinCompilation.ExitCode.COMPILATION_ERROR
result.messages shouldContain "Type mismatch: inferred type is Validation<Int> but Validation<Number> was expected"
result.messages shouldContain "Argument type mismatch: actual type is 'io.konform.validation.Validation<kotlin.Int>', " +
"but 'io.konform.validation.Validation<kotlin.Number>' was expected"
}
}

0 comments on commit 5533752

Please sign in to comment.