2021-06-20 09:32:24 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
2020-04-26 18:25:59 +00:00
|
|
|
plugins {
|
|
|
|
id("kotlin-platform-jvm")
|
|
|
|
application
|
|
|
|
kotlin("plugin.serialization")
|
2021-06-16 17:42:33 +00:00
|
|
|
id("com.github.johnrengelman.shadow")
|
2020-04-26 18:25:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-06-20 12:52:13 +00:00
|
|
|
with(Deps.Kotlinx) {
|
|
|
|
implementation(serializationCore) // JVM dependency
|
|
|
|
implementation(coroutinesCore)
|
2021-06-20 05:55:56 +00:00
|
|
|
}
|
2020-04-26 18:25:59 +00:00
|
|
|
|
2021-06-20 09:32:24 +00:00
|
|
|
with(Deps.Ktor) {
|
2021-06-20 05:55:56 +00:00
|
|
|
implementation(serverCore)
|
|
|
|
implementation(serverNetty)
|
|
|
|
implementation(websockets)
|
2021-12-18 13:51:33 +00:00
|
|
|
implementation(serverContentNegotiation)
|
|
|
|
implementation(json)
|
2021-06-20 05:55:56 +00:00
|
|
|
}
|
2020-04-26 18:25:59 +00:00
|
|
|
|
2021-06-20 12:52:13 +00:00
|
|
|
with(Deps.Log) {
|
|
|
|
implementation(logback)
|
|
|
|
}
|
|
|
|
|
2020-04-26 18:25:59 +00:00
|
|
|
implementation(project(":common"))
|
|
|
|
}
|
2020-05-14 17:44:55 +00:00
|
|
|
|
2021-06-20 09:32:24 +00:00
|
|
|
tasks.withType<KotlinCompile> {
|
2021-05-11 18:48:28 +00:00
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
2020-05-14 17:44:55 +00:00
|
|
|
application {
|
|
|
|
mainClass.set("ServerKt")
|
|
|
|
}
|