From a5f2128e1d47c70bed570249863f880e65bc86cd Mon Sep 17 00:00:00 2001 From: sergeych Date: Sat, 27 Apr 2024 00:09:58 +0200 Subject: [PATCH] added & published for all KMP targets (0.1.3) --- build.gradle.kts | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index b1de69f..5a4bb8d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -8,7 +8,7 @@ plugins { val serialization_version = "1.3.4" group = "net.sergeych" -version = "0.1.1" +version = "0.1.3" repositories { mavenCentral() @@ -19,9 +19,9 @@ repositories { kotlin { jvmToolchain(17) jvm { - compilations.all { - kotlinOptions.jvmTarget = "1.8" - } +// compilations.all { +// kotlinOptions.jvmTarget = "1.8" +// } withJava() testRuns["test"].executionTask.configure { useJUnitPlatform() @@ -49,6 +49,12 @@ kotlin { } } + macosArm64() + iosX64() + iosArm64() + macosX64() + iosSimulatorArm64() + // val hostOs = System.getProperty("os.name") // val isMingwX64 = hostOs.startsWith("Windows") // val nativeTarget = when { @@ -75,7 +81,7 @@ kotlin { baseName = "mp_bintools" } } - + sourceSets { all { languageSettings.optIn("kotlinx.serialization.ExperimentalSerializationApi") @@ -87,21 +93,19 @@ kotlin { implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.0") // this is actually a bug: we need only the core, but bare core causes strange errors implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3") -// api("net.sergeych:mp_stools:[1.3.3,)") + api("net.sergeych:mp_stools:[1.4.7,)") implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.5.0") } } val commonTest by getting { dependencies { implementation(kotlin("test")) - implementation("net.sergeych:mp_stools:1.4.4-SNAPSHOT") } } val jvmMain by getting val jvmTest by getting val jsMain by getting { dependencies { - implementation("net.sergeych:mp_stools:1.4.4-SNAPSHOT") } } val jsTest by getting @@ -109,7 +113,6 @@ kotlin { val nativeTest by getting val wasmJsMain by getting { dependencies { - implementation("net.sergeych:mp_stools:1.4.4-SNAPSHOT") } } val wasmJsTest by getting