From 099fb149c058e6c08e4970e253373cc27d0f0326 Mon Sep 17 00:00:00 2001 From: ManApart Date: Tue, 17 Dec 2024 08:07:05 -0500 Subject: [PATCH] unit tests passing --- build.gradle.kts | 25 +++++++++++-------- .../kotlin/core/utility/LazyMutable.kt | 1 + 2 files changed, 15 insertions(+), 11 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 5822eaaa..7a45e81e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,5 +1,8 @@ @file:Suppress("UNUSED_VARIABLE") +import org.jetbrains.kotlin.gradle.dsl.JvmTarget + + plugins { kotlin("multiplatform") version "2.1.0" kotlin("plugin.serialization") version "2.1.0" @@ -14,21 +17,22 @@ repositories { kotlin { jvm { - compilations.all { - kotlinOptions.jvmTarget = "17" + withJava() + compilerOptions { + jvmTarget.set(JvmTarget.JVM_19) } testRuns["test"].executionTask.configure { useJUnitPlatform() } - this@kotlin.sourceSets { - val jvmTestIntegration by creating { - dependsOn(this@sourceSets["jvmMain"]) - } - val jvmTools by creating { - dependsOn(this@sourceSets["jvmMain"]) - } - } +// this@kotlin.sourceSets { +// val jvmTestIntegration by creating { +// dependsOn(this@sourceSets["jvmMain"]) +// } +// val jvmTools by creating { +// dependsOn(this@sourceSets["jvmMain"]) +// } +// } compilations { val main by getting val testIntegration by compilations.creating { @@ -59,7 +63,6 @@ kotlin { } } } - withJava() } js(IR) { binaries.executable() diff --git a/src/jvmMain/kotlin/core/utility/LazyMutable.kt b/src/jvmMain/kotlin/core/utility/LazyMutable.kt index e60b3755..e8ff75a7 100644 --- a/src/jvmMain/kotlin/core/utility/LazyMutable.kt +++ b/src/jvmMain/kotlin/core/utility/LazyMutable.kt @@ -1,5 +1,6 @@ package core.utility +import kotlin.properties.ReadWriteProperty import kotlin.reflect.KProperty /*