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

Szymon Lipiński

10/04/2019, 3:41 PM
it seems like the official documentation is bad
e

e5l

10/04/2019, 3:41 PM
It looks like a server auth.
Could you check if the artifact
"io.ktor:ktor-client-auth:$ktor_version"
in the dependencies block?
s

Szymon Lipiński

10/04/2019, 3:43 PM
I'm using maven and I have this
Copy code
<dependency>
            <groupId>io.ktor</groupId>
            <artifactId>ktor-client-auth</artifactId>
            <version>${ktor_version}</version>
        </dependency>
        <dependency>
            <groupId>io.ktor</groupId>
            <artifactId>ktor-client-auth-basic</artifactId>
            <version>${ktor_version}</version>
        </dependency>
e

e5l

10/04/2019, 3:43 PM
Oh, ok. You can drop
ktor-client-auth-basic
and replace
ktor-client-auth
with
ktor-client-auth-jvm
.
s

Szymon Lipiński

10/04/2019, 3:45 PM
Cool, thank you, it compiles now.
👍 1