Skip to content

Commit

Permalink
Change artifactId (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foso authored Nov 10, 2024
2 parents c64072c + 84bb9c1 commit 4289868
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 34 deletions.
19 changes: 3 additions & 16 deletions ktorfit-lib-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -80,13 +72,8 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
}

kotlin {
if (libs.versions.ktorVersion
.get()
.startsWith("3.")
) {
@OptIn(ExperimentalWasmDsl::class)
wasmJs()
}
@OptIn(org.jetbrains.kotlin.gradle.ExperimentalWasmDsl::class)
wasmJs()
explicitApi()
jvm {
}
Expand Down
23 changes: 5 additions & 18 deletions ktorfit-lib/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("multiplatform")
Expand All @@ -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,
Expand All @@ -40,19 +32,14 @@ mavenPublishing {
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
tasks.withType<KotlinCompile> {
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) {
Expand Down

0 comments on commit 4289868

Please sign in to comment.