-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Kotlinx Serialization 1.8.0 with Kotlin 1.9.23 #2924
Comments
OK, I think I figured out my confusion. The
However, that looks like that stopped being true around v1.7.0: Am I correct in believing that that line in the |
The phrase in the README refers to the fact that any kotlinx.serialization version requires at least 1.4.0. More recent versions require more recent compilers, and generally, the latest releases always depend on the latest Kotlin's. |
I see. It might be nice to have a compatibility table, at the very least. Also, given what you mentioned about how more recent versions require more recent compilers, I would assume anyone stuck on older compilers just... can't use the more recent versions (and their features)? Or are there ways to make it work? |
@nmggithub What the compiler plugin does is to generate the serializer for you. This generation changes somewhat between versions, and this means more recent compilers need more recent library versions. The other way around may (probably) work but could run into issues with some binary compatibility internal ( |
I see. Thank you for the information. In any case, I still think a compatibility table would be much more informative than a vague "at least 1.4.0" (even if that statement is accurate). |
That is generally true for any Kotlin library, see https://kotlinlang.org/docs/kotlin-evolution-principles.html#evolving-the-binary-format:
|
Hello!
I am trying to use Kotlinx Serialization on a project that uses Kotlin 1.9.23. I've noticed that the most recent version, 1.8.0, seems to have a compile dependency on Kotlin 2.1.0: https://mvnrepository.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core-jvm/1.8.0
Does this mean that I am unable to use it on versions previous to 2.1.0? Any help, advice, or knowledge, would be much appreciated.
Thank you!
EDIT: To clarify, when trying to use it in my 1.9.23 project, I get multiple build errors as the 2.1.0 library is clashing with everything else.
The text was updated successfully, but these errors were encountered: