Versions
As kotlinx.rpc
uses Kotlin compiler plugin, we rely on internal functionality that may change over time with any new Kotlin version. To prevent the library from breaking with an incompatible Kotlin version, we use version prefix for artifacts with code generating functionality.
We provide core version updates for all stable versions of the last three major Kotlin releases. So if the last stable Kotlin version is 2.0.21
, as at the time of writing this guide, the following versions of Kotlin are supported:
2.0.0, 2.0.10, 2.0.20, 2.0.21
Our code generation will support these versions (See more on code generation artifacts). Runtime artifacts are configured with language-version
and api-version
parameters for the oldest supported minor version of Kotlin.
Project configuration
To simplify project configuration, both our Gradle plugins are able to set proper runtime dependencies versions automatically based on the project's Kotlin version and the Gradle plugin version which is used as a core library version.
Code generation artifacts
To ensure everything works as intended for all supported Kotlin versions, we provide a separate code-generation artifact for each Kotlin version. For example, if a project has this setup:
Our Gradle plugin will add these dependencies to all applicable configurations:
Such dependencies are managed automatically, and should not be used explicitly.