https://kotlinlang.org logo
#ktor
Title
# ktor
m

mingkangpan

05/26/2019, 12:17 PM
Copy code
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project

plugins {
    application
    kotlin("jvm")
}

group = "ktorserver"
version = "0.0.1"

application {
    mainClassName = "io.ktor.server.tomcat.EngineMain"
}

repositories {
    mavenLocal()
    maven { url = uri("<https://kotlin.bintray.com/ktor>") }
}

dependencies {
    compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
    compile("io.ktor:ktor-server-tomcat:$ktor_version")
    compile("ch.qos.logback:logback-classic:$logback_version")
    compile("io.ktor:ktor-server-core:$ktor_version")
    compile("io.ktor:ktor-jackson:$ktor_version")
    testCompile("io.ktor:ktor-server-tests:$ktor_version")
}
^this my gradle.kts
d

Dominaezzz

05/26/2019, 9:17 PM
Have you tried adding
compile("io.ktor:ktor-auth:$ktor_version")
?
🙏 1
Unrelated but
maven(url = "<https://kotlin.bintray.com/ktor>")
is a bit shorter.
m

mingkangpan

05/26/2019, 9:23 PM
wow this was it, but I am sure that if I import the auth example via the intelliJ built in ktor plugin, there is no compile of ktor-auth defined 😓
g

gildor

05/27/2019, 1:30 AM
example via the intelliJ built in ktor plugin, there is no compile of ktor-auth defined
Maybe just a plugin bug?
5 Views