Finally got all my software updated to Kotlin 1.4....
# announcements
s
Finally got all my software updated to Kotlin 1.4.0 since most of the artifacts have been published! Still waiting on Ktor though, guess that'll have to wait until Monday
s
did you go with snapshot versions?
s
Didn't have to for most cases! The 1.4.0 multiplatform and JVM plugins are pushed, as is serialization (both runtime at 1.0.0-RC and plugin at 1.4.0), and coroutines has been bumped to 1.3.9 which uses 1.4.0
s
Ah, I did not check their pages. I was taking the suggestion of gradle error thanks for clarification
s
Although just as an FYI,
kotlinx-serialization-runtime
does have to be renamed to
kotlinx-serialization-core
to use 1.0.0-RC. Seems the naming changed
👍 1
s
Hummm, Thanks for the info
n
1.3.2-1.4.0-rc
seems to work for ktor(-client)
s
Yeah, that's what I'm using at the moment, and it does work, but I'd like to use the stable version for a published library once it gets pushed
j
I'm getting series of errors like following when using that combination of dependencies....this is KMP project fwiw so might be a factor
Copy code
Duplicate class kotlinx.serialization.AbstractSerialFormat found in modules jetified-kotlinx-serialization-core-jvm-1.0.0-RC (org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.0.0-RC) and jetified-kotlinx-serialization-runtime-jvm-1.0-M1-1.4.0-rc (org.jetbrains.kotlinx:kotlinx-serialization-runtime-jvm:1.0-M1-1.4.0-rc)
Duplicate class kotlinx.serialization.BinaryFormat found in modules jetified-kotlinx-serialization-core-jvm-1.0.0-RC (org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.0.0-RC) and jetified-kotlinx-serialization-runtime-jvm-1.0-M1-1.4.0-rc (org.jetbrains.kotlinx:kotlinx-serialization-runtime-jvm:1.0-M1-1.4.0-rc)
Duplicate class kotlinx.serialization.Contextual found in modules jetified-kotlinx-serialization-core-jvm-1.0.0-RC (org.jetbrains.kotlinx:kotlinx-serialization-core-jvm:1.0.0-RC) and jetified-kotlinx-serialization-runtime-jvm-1.0-M1-1.4.0-rc (org.jetbrains.kotlinx:kotlinx-serialization-runtime-jvm:1.0-M1-1.4.0-rc)
ok, not too surprisingly, this was due to transitive dependency to for example
kotlinx:kotlinx-serialization-runtime-jvm:1.0-M1-1.4.0-rc
fron current ktor dependeny
updated to use following and building/running fine now:
Copy code
implementation("io.ktor:ktor-client-serialization:${Versions.ktor}") {
    exclude(group = "org.jetbrains.kotlinx", module = "kotlinx-serialization-runtime")
}
🙂 1