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 {
|
2018-11-01 12:13:15 +00:00
|
|
|
mainClassName = "io.ktor.server.netty.EngineMain"
|
2018-09-24 21:13:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven(url = "http://dl.bintray.com/kotlin/ktor")
|
|
|
|
maven(url = "https://dl.bintray.com/kotlin/kotlinx")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-04-16 09:37:06 +00:00
|
|
|
val ktorVersion = "1.3.2"
|
2019-05-30 11:54:24 +00:00
|
|
|
|
2020-08-07 13:51:27 +00:00
|
|
|
implementation(project(":kotlin-result"))
|
2018-09-24 21:13:47 +00:00
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
2019-05-30 11:54:24 +00:00
|
|
|
implementation("ch.qos.logback:logback-classic:1.2.3")
|
2019-05-30 12:28:56 +00:00
|
|
|
implementation("io.ktor:ktor-server-core:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-server-netty:$ktorVersion")
|
|
|
|
implementation("io.ktor:ktor-gson:$ktorVersion")
|
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"
|
|
|
|
}
|
|
|
|
}
|