2020-06-05 15:26:40 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
2018-09-24 21:13:47 +00:00
|
|
|
plugins {
|
|
|
|
application
|
|
|
|
kotlin("jvm")
|
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
2021-01-30 21:48:07 +00:00
|
|
|
mainClass.set("io.ktor.server.netty.EngineMain")
|
2018-09-24 21:13:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-08-07 13:51:27 +00:00
|
|
|
implementation(project(":kotlin-result"))
|
2018-09-24 21:13:47 +00:00
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
2020-08-26 18:52:18 +00:00
|
|
|
implementation("ch.qos.logback:logback-classic:${Versions.logback}")
|
|
|
|
implementation("io.ktor:ktor-server-core:${Versions.ktor}")
|
|
|
|
implementation("io.ktor:ktor-server-netty:${Versions.ktor}")
|
|
|
|
implementation("io.ktor:ktor-gson:${Versions.ktor}")
|
2018-09-24 21:13:47 +00:00
|
|
|
}
|
2020-06-05 15:26:40 +00:00
|
|
|
|
|
|
|
tasks.withType(KotlinCompile::class.java).all {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|