https://kotlinlang.org logo
Title
m

Muthu

01/14/2018, 4:56 PM
I just started my first kotlin project using ktor referring
<http://ktor.io/quickstart/gradle>
I'm getting error
Could not get unknown property 'ktor_version' for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Below is the dependencies I'm using in build gradle file
dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    compile "io.ktor:ktor-server-netty:$ktor_version"
    testCompile group: 'junit', name: 'junit', version: '4.12'
}
b

bmourat

01/14/2018, 4:58 PM
and what is your $ktor_version?
m

Muthu

01/14/2018, 5:15 PM
Thanks @bmourat It worked for me, by updating the ktor line to
compile group: 'io.ktor', name: 'ktor-server-netty', version: '0.9.0'