I can't import class io.ktor.auth.AuthenticationProvider and other classes for ktor, even if I can run a ktor application. Why is it so? Do I need to reference some other dependency? The whole io.ktor.auth package is not available.
d
Dico
01/04/2020, 9:57 AM
This would be in the ktor-auth dependency artifact I think.
It's "io.ktor:ktor-serialization:$ktor_version". "kotlinx-serialization" is the standard kotlin serialization plugin. I guess https://ktor.io/quickstart/artifacts.html is not updated: gradle can find that dependency just fine.
v
v79
01/04/2020, 12:24 PM
I can't seem to install any ContentNegotiation libraries... neither Gson nor kotlinx serialisation or Jackson are working for me.
Invalidated Caches and restart got Jackson and Gson available. Still no kotlinx-serialization. Oh well.
m
melatonina
01/04/2020, 1:41 PM
I'll use them later today or in the next days. I'll update you about my experience.