With ktor-client 1.1.0 and 1.1.1 in a multiplatfor...
# ktor
s
With ktor-client 1.1.0 and 1.1.1 in a multiplatform project, the package io.ktor is unresolved, both in the base gradle build and in IntelliJ.
1
c
You probably need to replace ios in artifact names
The ktor--ios artifacts is now ktor--native(except ktor-client-ios)
s
I'm not using native, just JVM and common at the moment (
ktor-client
and
ktor-client-okhttp
)
c
1.1.0 had problems with transitive dependencies so it should work with 1.1.1
s
Switching back to 1.0.1 fixes the resolution issue
Neither of them seem to work for me
I'm testing this in this project: https://gitlab.com/serebit/strife
Changing the
kotlin-client
and
kotlin-client-okhttp
versions in
source/build.gradle.kts
to either 1.1.1 or 1.1.0 causes a build failure.
c
Is it failing at common source set ?
s
Yes.
Oh, no
It's failing at JVM
c
perhaps you need to include
ktor-client-core
in common instead of just
ktor-client
Ok, let me try it
s
Actually, that fixed it
Thanks for your help!
c
Cool
Could you please point me to the place from where you have copied it so we can fix it?
In the
Common
section
c
Fixed, thanks!
👍 2