voddan
10/10/2018, 11:26 AMget(...) is deprecated. Experimental coroutines support will be dropped in 1.4
in the simpliest code like
routing {
get("/") {
call.respondText("Hello World!", ContentType.Text.Plain)
}
get("/demo") {
call.respondText("HELLO WORLD!")
}
}
How do I get rid of those?cy
10/10/2018, 11:28 AMcy
10/10/2018, 11:28 AMvoddan
10/10/2018, 11:41 AMcy
10/10/2018, 11:43 AMcy
10/10/2018, 11:43 AMvoddan
10/10/2018, 11:52 AMplugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.0-rc-131'
id 'application'
}
group 'kotlin.examples.ktor'
version '1.0-SNAPSHOT'
repositories {
maven { url '<http://dl.bintray.com/kotlin/kotlin-eap>' }
mavenCentral()
jcenter()
maven { url "<https://dl.bintray.com/kotlin/ktor>" }
}
ext.ktor_version = '1.0.0-alpha-1'
ext.coroutines_version = '0.30.2'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "io.ktor:ktor-server-netty:1.0.0-alpha-1 "
compile "ch.qos.logback:logback-classic:1.2.3"
// compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:0.30.2'
// compile 'org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:0.30.2'
}
sourceCompatibility = 1.8
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
//kotlin.experimental.coroutines "enable"
voddan
10/10/2018, 11:53 AMvoddan
10/10/2018, 11:54 AMcy
10/10/2018, 11:54 AMcy
10/10/2018, 11:54 AM0.30.2-eap13
voddan
10/10/2018, 11:54 AMcy
10/10/2018, 11:55 AMvoddan
10/10/2018, 11:56 AMvoddan
10/10/2018, 11:56 AMcy
10/10/2018, 11:58 AMcy
10/10/2018, 11:58 AMvoddan
10/10/2018, 11:59 AMvoddan
10/10/2018, 12:00 PMplugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.0-rc-131'
id 'application'
}
group 'kotlin.examples.ktor'
version '1.0-SNAPSHOT'
repositories {
maven { url '<http://dl.bintray.com/kotlin/kotlin-eap>' }
mavenCentral()
jcenter()
maven { url "<https://dl.bintray.com/kotlin/ktor>" }
}
ext.ktor_version = '1.0.0-alpha-1'
ext.coroutines_version = '0.30.2-eap13'
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "ch.qos.logback:logback-classic:1.2.3"
}
sourceCompatibility = 1.8
compileKotlin { kotlinOptions.jvmTarget = "1.8" }
compileTestKotlin { kotlinOptions.jvmTarget = "1.8" }
voddan
10/10/2018, 12:00 PMvoddan
10/10/2018, 12:01 PMvoddan
10/10/2018, 12:14 PMe5l
10/10/2018, 12:15 PMDeactivated User
10/10/2018, 12:25 PMDeactivated User
10/11/2018, 8:37 AM