kotlinx.rpc 0.1.0 Help

Releases

The kotlinx.rpc version for all runtime dependencies consists of two parts: Kotlin version prefix and core (feature) version suffix.

1.9.24-0.1.0

Here 1.9.24 is the version of Kotlin of your project. It can be found out by looking at Kotlin Gradle Plugin:

plugins { kotlin("jvm") version "1.9.24" }

As kotlinx.rpc uses Kotlin compiler plugin and KSP plugins, 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. But this may result in a situation when an update to a newer version of the library would require updating the project's Kotlin version, which is not always possible and/or easy. To address that issue, we provide core version updates for all stable versions of the last three major Kotlin releases. So if the last stable Kotlin version is 1.9.24, as at the time of writing this guide, the following versions of Kotlin are supported:

  • 1.7.0, 1.7.10, 1.7.20, 1.7.21, 1.7.22

  • 1.8.0, 1.8.10, 1.8.20, 1.8.21, 1.8.22

  • 1.9.0, 1.9.10, 1.9.20, 1.9.21, 1.9.22, 1.9.23, 1.9.24

So for each of the listed Kotlin versions, you can use <kotlin_version>-<core_version> template to get the needed library version. (So, for core version 0.1.0, there are 1.7.0-0.1.0, 1.7.0-0.1.0, ... , 1.9.24-0.1.0 versions present).

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.

To summarize, we can look at the example:

plugins { kotlin("jvm") version "1.9.24" // project's Kotlin version id("org.jetbrains.kotlinx.rpc.platform") version "0.1.0" // kotlinx.rpc core version } dependencies { // for kotlinx.rpc runtime dependencies, Gradle plugin sets version 1.9.24-0.1.0 implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-client") implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-server") }
Last modified: 13 June 2024