From 84bb9c137405986d61d01dc7b9f9b9e843ea86de Mon Sep 17 00:00:00 2001 From: Jens Klingenberg Date: Sun, 10 Nov 2024 21:05:07 +0100 Subject: [PATCH] Change artifactId --- ktorfit-lib-core/build.gradle.kts | 19 +++---------------- ktorfit-lib/build.gradle.kts | 23 +++++------------------ 2 files changed, 8 insertions(+), 34 deletions(-) diff --git a/ktorfit-lib-core/build.gradle.kts b/ktorfit-lib-core/build.gradle.kts index d06d09946..72a43f9f5 100644 --- a/ktorfit-lib-core/build.gradle.kts +++ b/ktorfit-lib-core/build.gradle.kts @@ -54,15 +54,7 @@ val enableSigning = project.hasProperty("signingInMemoryKey") mavenPublishing { val artifactId = - "ktorfit-lib-light" + - if (libs.versions.ktorVersion - .get() - .startsWith("3.") - ) { - "-ktor-" + libs.versions.ktorVersion.get() - } else { - "" - } + "ktorfit-lib-light" coordinates( libs.versions.groupId.get(), artifactId, @@ -80,13 +72,8 @@ tasks.withType { } kotlin { - if (libs.versions.ktorVersion - .get() - .startsWith("3.") - ) { - @OptIn(ExperimentalWasmDsl::class) - wasmJs() - } + @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class) + wasmJs() explicitApi() jvm { } diff --git a/ktorfit-lib/build.gradle.kts b/ktorfit-lib/build.gradle.kts index 19262c00d..b6a07a7f3 100644 --- a/ktorfit-lib/build.gradle.kts +++ b/ktorfit-lib/build.gradle.kts @@ -1,4 +1,5 @@ import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("multiplatform") @@ -18,16 +19,7 @@ licensee { val enableSigning = project.hasProperty("signingInMemoryKey") mavenPublishing { - val artifactId = - "ktorfit-lib" + - if (libs.versions.ktorVersion - .get() - .startsWith("3.") - ) { - "-ktor-" + libs.versions.ktorVersion.get() - } else { - "" - } + val artifactId ="ktorfit-lib" coordinates( libs.versions.groupId.get(), artifactId, @@ -40,19 +32,14 @@ mavenPublishing { } } -tasks.withType { +tasks.withType { kotlinOptions.jvmTarget = "1.8" } kotlin { explicitApi() - if (libs.versions.ktorVersion - .get() - .startsWith("3.") - ) { - @OptIn(ExperimentalWasmDsl::class) - wasmJs() - } + @OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class) + wasmJs() jvm { } js(IR) {