bca344daaf
Closes #12
33 lines
760 B
Plaintext
33 lines
760 B
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
application
|
|
kotlin("jvm")
|
|
}
|
|
|
|
application {
|
|
mainClassName = "io.ktor.server.netty.EngineMain"
|
|
}
|
|
|
|
repositories {
|
|
maven(url = "http://dl.bintray.com/kotlin/ktor")
|
|
maven(url = "https://dl.bintray.com/kotlin/kotlinx")
|
|
}
|
|
|
|
dependencies {
|
|
val ktorVersion = "1.3.2"
|
|
|
|
implementation(rootProject)
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
implementation("ch.qos.logback:logback-classic:1.2.3")
|
|
implementation("io.ktor:ktor-server-core:$ktorVersion")
|
|
implementation("io.ktor:ktor-server-netty:$ktorVersion")
|
|
implementation("io.ktor:ktor-gson:$ktorVersion")
|
|
}
|
|
|
|
tasks.withType(KotlinCompile::class.java).all {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|