|
7 | 7 |
|
8 | 8 | [](https://kotlinlang.org/docs/components-stability.html)
|
9 | 9 | [](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
|
10 |
| -[](http://kotlinlang.org) |
| 10 | +[](http://kotlinlang.org) |
11 | 11 | [](http://www.apache.org/licenses/LICENSE-2.0)
|
12 | 12 |
|
13 | 13 | [//]: # ([](https://teamcity.jetbrains.com/viewType.html?buildTypeId=Build_kRPC_All&guest=1))
|
@@ -86,15 +86,26 @@ Check out our [getting started guide](https://kotlin.github.io/kotlinx-rpc) for
|
86 | 86 | - The `org.jetbrains.kotlinx.rpc.plugin` will set up BOM and code generation for targets in the project.
|
87 | 87 | - The `org.jetbrains.kotlinx.rpc.platform` will only set up BOM. It is useful when you want to split your app into modules,
|
88 | 88 | and some of them will contain service declarations, thus using code generation, while others will only consume them.
|
89 |
| -- The `com.google.devtools.ksp` is required by the library. Corresponding configurations will be set up automatically by `org.jetbrains.kotlinx.rpc.plugin` plugin. |
90 | 89 |
|
91 | 90 | Example of plugins setup in a project's `build.gradle.kts`:
|
| 91 | +```kotlin |
| 92 | +plugins { |
| 93 | + kotlin("jvm") version "2.0.10" |
| 94 | + kotlin("plugin.serialization") version "2.0.10" |
| 95 | + id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.2" |
| 96 | +} |
| 97 | +``` |
| 98 | + |
| 99 | +For Kotlin versions prior to 2.0, |
| 100 | +KSP plugin is required |
| 101 | +(Corresponding configurations will be set up automatically by `org.jetbrains.kotlinx.rpc.plugin` plugin): |
| 102 | + |
92 | 103 | ```kotlin
|
93 | 104 | // build.gradle.kts
|
94 | 105 | plugins {
|
95 |
| - kotlin("jvm") version "1.9.24" |
96 |
| - kotlin("plugin.serialization") version "1.9.24" |
97 |
| - id("com.google.devtools.ksp") version "1.9.24-1.0.20" |
| 106 | + kotlin("jvm") version "1.9.25" |
| 107 | + kotlin("plugin.serialization") version "1.9.25" |
| 108 | + id("com.google.devtools.ksp") version "1.9.25-1.0.20" |
98 | 109 | id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.2"
|
99 | 110 | }
|
100 | 111 | ```
|
@@ -147,13 +158,14 @@ Integrations in progress:
|
147 | 158 | We support all stable Kotlin versions starting from 1.7.0:
|
148 | 159 | - 1.7.0, 1.7.10, 1.7.20, 1.7.21, 1.7.22
|
149 | 160 | - 1.8.0, 1.8.10, 1.8.20, 1.8.21, 1.8.22
|
150 |
| -- 1.9.0, 1.9.10, 1.9.20, 1.9.21, 1.9.22, 1.9.23, 1.9.24 |
| 161 | +- 1.9.0, 1.9.10, 1.9.20, 1.9.21, 1.9.22, 1.9.23, 1.9.24, 1.9.25 |
| 162 | +- 2.0.0, 2.0.10 |
151 | 163 |
|
152 | 164 | To simplify project configuration, our Gradle plugin sets a proper library version automatically using BOM,
|
153 | 165 | based on the project's Kotlin version:
|
154 | 166 | ```kotlin
|
155 | 167 | plugins {
|
156 |
| - kotlin("jvm") version "1.9.24" |
| 168 | + kotlin("jvm") version "2.0.10" |
157 | 169 | id("org.jetbrains.kotlinx.rpc.plugin") version "0.2.2"
|
158 | 170 | }
|
159 | 171 |
|
|
0 commit comments