36 lines
No EOL
731 B
Text
36 lines
No EOL
731 B
Text
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("kotlin-platform-jvm")
|
|
application
|
|
kotlin("plugin.serialization")
|
|
id("com.github.johnrengelman.shadow")
|
|
}
|
|
|
|
dependencies {
|
|
with(Deps.Kotlinx) {
|
|
implementation(serializationCore) // JVM dependency
|
|
implementation(coroutinesCore)
|
|
}
|
|
|
|
with(Deps.Ktor) {
|
|
implementation(serverCore)
|
|
implementation(serverNetty)
|
|
//implementation(serialization)
|
|
implementation(websockets)
|
|
}
|
|
|
|
with(Deps.Log) {
|
|
implementation(logback)
|
|
}
|
|
|
|
implementation(project(":common"))
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
application {
|
|
mainClass.set("ServerKt")
|
|
} |