46 lines
1.2 KiB
Kotlin
46 lines
1.2 KiB
Kotlin
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
plugins {
|
|
kotlin("multiplatform")
|
|
kotlin("plugin.serialization")
|
|
}
|
|
|
|
kotlin {
|
|
explicitApi()
|
|
|
|
linuxX64()
|
|
linuxArm64()
|
|
macosArm64()
|
|
mingwX64()
|
|
jvm { compilerOptions.jvmTarget = JvmTarget.JVM_11 }
|
|
|
|
sourceSets {
|
|
val ktorVersion = "3.5.2"
|
|
commonMain.dependencies {
|
|
api(project(":bl-model"))
|
|
implementation("io.ktor:ktor-client-core:$ktorVersion")
|
|
implementation("io.ktor:ktor-client-websockets:$ktorVersion")
|
|
}
|
|
|
|
jvmMain.dependencies {
|
|
implementation("io.ktor:ktor-client-java:${ktorVersion}")
|
|
}
|
|
|
|
appleMain.dependencies {
|
|
implementation("io.ktor:ktor-client-darwin:${ktorVersion}")
|
|
}
|
|
|
|
linuxMain.dependencies {
|
|
implementation("io.ktor:ktor-client-curl:${ktorVersion}")
|
|
}
|
|
|
|
mingwMain.dependencies {
|
|
implementation("io.ktor:ktor-client-winhttp:${ktorVersion}")
|
|
}
|
|
|
|
commonTest.dependencies {
|
|
implementation(kotlin("test"))
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0")
|
|
}
|
|
}
|
|
} |