60 lines
1.5 KiB
Plaintext
60 lines
1.5 KiB
Plaintext
|
val ktor_version: String by project
|
||
|
val kotlin_version: String by project
|
||
|
|
||
|
plugins {
|
||
|
kotlin("multiplatform") version "1.7.10"
|
||
|
kotlin("plugin.serialization") version "1.7.10"
|
||
|
`maven-publish`
|
||
|
}
|
||
|
|
||
|
group = "net.sergeych"
|
||
|
version = "0.0.1-SNAPSHOT"
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
maven("https://maven.universablockchain.com")
|
||
|
mavenLocal()
|
||
|
}
|
||
|
|
||
|
kotlin {
|
||
|
jvm {
|
||
|
compilations.all {
|
||
|
kotlinOptions.jvmTarget = "1.8"
|
||
|
}
|
||
|
withJava()
|
||
|
testRuns["test"].executionTask.configure {
|
||
|
useJUnitPlatform()
|
||
|
}
|
||
|
}
|
||
|
js(IR) {
|
||
|
browser {
|
||
|
commonWebpackConfig {
|
||
|
cssSupport.enabled = true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
sourceSets {
|
||
|
val commonMain by getting {
|
||
|
dependencies {
|
||
|
implementation("io.ktor:ktor-client-core:$ktor_version")
|
||
|
implementation("io.ktor:ktor-client-websockets:$ktor_version")
|
||
|
api("net.sergeych:boss-serialization-mp:0.1.3-SNAPSHOT")
|
||
|
implementation("net.sergeych:mp_stools:[1.3.2-SNAPSHOT,)")
|
||
|
}
|
||
|
}
|
||
|
val commonTest by getting {
|
||
|
dependencies {
|
||
|
implementation(kotlin("test"))
|
||
|
}
|
||
|
}
|
||
|
val jvmMain by getting {
|
||
|
dependencies {
|
||
|
implementation("org.mapdb:mapdb:3.0.8")
|
||
|
}
|
||
|
}
|
||
|
val jvmTest by getting
|
||
|
val jsMain by getting
|
||
|
val jsTest by getting
|
||
|
}
|
||
|
}
|