For adopters of earlier versions of kotlinx.serialization
, a dedicated migration path is prepared. During the preparation of serialization 1.0.0 release, most of the API has been changed, renamed, moved to a separate package or made internal. IDEA migrations were introduced, but unfortunately not all API can be migrated with automatic replacements.
To simplify your migrations path, it is recommended to enable star imports in IDE (so all extensions are imported automatically) first.
kotlinx.serialization
to version 1.0.0-RC2
(this is the last version that has migrations for pre-1.0.0 versions. 1.0.0 version itself does not have any migration aids.)kotlinx-serialization-runtime
to kotlinx-serialization-json
.kotlinx-serialization-runtime-js
), they are no longer required by Gradle.alt + Enter
and import the signature.kotlinx.serialization
signatures in the problematic file.1.0.0-RC2
to 1.0.0
.For less trivial issues, it is recommended to study the changelog or to ask for help in #serialization
Kotlin's Slack channel.