PeopleInSpace/backend/build.gradle.kts
2021-06-20 15:27:53 +01:00

36 lines
No EOL
729 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")
}