2018-01-11 18:30:41 +00:00
|
|
|
apply plugin: 'application'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
|
|
|
|
mainClassName = 'io.ktor.server.netty.DevelopmentEngine'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2018-09-18 23:05:03 +00:00
|
|
|
maven { url = "http://dl.bintray.com/kotlin/ktor" }
|
|
|
|
maven { url = "https://dl.bintray.com/kotlin/kotlinx" }
|
2018-01-11 18:30:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2018-09-18 23:05:03 +00:00
|
|
|
implementation project(":")
|
|
|
|
implementation "ch.qos.logback:logback-classic:$logbackVersion"
|
|
|
|
implementation "io.ktor:ktor-server-core:$ktorVersion"
|
|
|
|
implementation "io.ktor:ktor-server-netty:$ktorVersion"
|
|
|
|
implementation "io.ktor:ktor-gson:$ktorVersion"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
|
2018-01-11 18:30:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
experimental {
|
|
|
|
coroutines "enable"
|
|
|
|
}
|
|
|
|
}
|