parsec3/build.gradle.kts

78 lines
2.4 KiB
Plaintext
Raw Normal View History

2022-08-25 23:16:22 +03:00
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
2022-08-25 23:16:22 +03:00
plugins {
kotlin("multiplatform") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
id("org.jetbrains.dokka") version "1.7.10"
2022-08-25 23:16:22 +03:00
`maven-publish`
}
group = "net.sergeych"
2022-09-14 04:12:54 +03:00
version = "0.0.2-SNAPSHOT"
2022-08-25 23:16:22 +03:00
repositories {
mavenCentral()
mavenLocal()
2022-09-14 04:12:54 +03:00
maven("https://maven.universablockchain.com")
2022-08-25 23:16:22 +03:00
}
kotlin {
jvm {
compilations.all {
2022-09-14 04:12:54 +03:00
kotlinOptions.jvmTarget = "11"
2022-08-25 23:16:22 +03:00
}
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:unikrypto:1.2.0-SNAPSHOT")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3")
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-websockets:$ktor_version")
api("org.jetbrains.kotlinx:kotlinx-datetime:0.4.0")
2022-09-14 04:12:54 +03:00
api("net.sergeych:boss-serialization-mp:0.1.4-SNAPSHOT")
api("net.sergeych:mp_stools:1.2.3-SNAPSHOT")
2022-08-25 23:16:22 +03:00
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.4")
2022-08-25 23:16:22 +03:00
}
}
val jvmMain by getting {
dependencies {
implementation("org.mapdb:mapdb:3.0.8")
implementation("io.ktor:ktor-client-cio-jvm:$ktor_version")
implementation("io.ktor:ktor-server-websockets:$ktor_version")
}
}
val jvmTest by getting {
dependencies {
implementation("io.ktor:ktor-server-core:$ktor_version")
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
2022-08-25 23:16:22 +03:00
}
}
val jsMain by getting
val jsTest by getting
}
}