2020-10-11 05:48:38 +08:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("js") version "1.4.10" apply false
|
2020-10-12 04:58:28 +08:00
|
|
|
kotlin("multiplatform") version "1.4.10" apply false
|
|
|
|
kotlin("plugin.serialization") version "1.4.10" apply false
|
2020-10-11 05:48:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.wrapper {
|
|
|
|
gradleVersion = "6.6.1"
|
|
|
|
}
|
|
|
|
|
|
|
|
subprojects {
|
2020-10-12 04:58:28 +08:00
|
|
|
project.extra["coroutinesVersion"] = "1.3.9"
|
2020-10-11 05:48:38 +08:00
|
|
|
project.extra["kotlinLoggingVersion"] = "2.0.2"
|
2020-10-12 04:58:28 +08:00
|
|
|
project.extra["ktorVersion"] = "1.4.1"
|
|
|
|
project.extra["serializationVersion"] = "1.0.0"
|
2020-10-29 07:09:22 +08:00
|
|
|
project.extra["slf4jVersion"] = "1.7.30"
|
2020-10-11 05:48:38 +08:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<Kotlin2JsCompile> {
|
|
|
|
kotlinOptions.freeCompilerArgs += listOf(
|
2020-10-17 06:28:35 +08:00
|
|
|
"-Xopt-in=kotlin.RequiresOptIn",
|
2020-10-11 05:48:38 +08:00
|
|
|
"-Xopt-in=kotlin.ExperimentalUnsignedTypes",
|
|
|
|
"-Xopt-in=kotlin.time.ExperimentalTime"
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|