Is there some documentation stating which kotlinx ...
# getting-started
l
Is there some documentation stating which kotlinx serialization plugin version to use with witch Kotlin version? I can't seem to find anything in the official documentation.
s
try if the latest version works for whatever Kotlin version you use 🤔
l
It works, yes, but is it the right thing to do given that the plugin is part of Kotlin the mono repo?
s
c
Do you mean
kotlin("plugin.serialization")
? Because if so, you should always use the same version as the Kotlin plugin itself
l
Yes, i mean
kotlin("plugin.serialization")
and I figured that that's the case. But is there any documentation around that?
c
I don't know. However, everything published under
kotlin("plugin.xxx")
is published with the same version as Kotlin itself. Same with Power Assert, Compose, etc.
l
Thanks for your help. Makes sense as those are located all here. Still trying to find some public documentation around that.
s
several plugins including serialization are about to become part of kotlin, here's the part of the KotlinKonf2025 keynote that talks about that:

https://www.youtube.com/watch?v=F5NaqGF9oT4&t=1201sâ–¾

but so far it's still separate and serialization has the same number as the kotlin plugin.
l
Very interesting, thanks for sharing.
d
Plugin version always should be the exact same version and the compiler. Otherwise there would be binary compatibility issues.
l
Thanks, would be great to have this somewhere in the public docs, I couldn't find it.