Skip to content

Commit b87d8e7

Browse files
committed
Update docs for K2 (#153)
1 parent c4befeb commit b87d8e7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

docs/pages/kotlinx-rpc/topics/plugins.topic

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -81,24 +81,26 @@
8181
where you define your <a href="services.topic">RPC services</a> in one set of subprojects and use in the
8282
other. In such a setup, you can add the plugin only to modules with service definitions
8383
to save time on building your project.</p>
84-
<p>
85-
For <code>kotlinx.rpc</code> library to work correctly with user-defined <a
86-
href="services.topic">services</a>,
87-
two additional configurations are required: the Kotlin compiler plugin and the
88-
<a href="https://kotlinlang.org/docs/ksp-overview.html">KSP</a> plugin.
89-
By adding the <code>kotlinx.rpc</code> and KSP Gradle plugins, all necessary configurations will be automatically set up:</p>
9084

9185
<code-block lang="kotlin">
9286
plugins {
9387
kotlin("jvm") version "%kotlin-version%"
94-
id("com.google.devtools.ksp") version "%ksp-version%"
9588
id("org.jetbrains.kotlinx.rpc.plugin") version "%kotlinx-rpc-version%"
9689
}
97-
98-
dependencies {
99-
implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-client")
100-
implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-server")
101-
}
10290
</code-block>
91+
92+
<chapter title="Kotlin versions earlier than 2.0" id="pre-kotlin-2-0">
93+
<p>
94+
If you are using a version of Kotlin prior to 2.0,
95+
you must also add the KSP (Kotlin Symbol Processing) Gradle plugin:
96+
</p>
97+
<code-block lang="kotlin">
98+
plugins {
99+
kotlin("jvm") version "1.9.24"
100+
id("org.jetbrains.kotlinx.rpc.plugin") version "%kotlinx-rpc-version%"
101+
id("com.google.devtools.ksp") version "1.9.24-1.0.20"
102+
}
103+
</code-block>
104+
</chapter>
103105
</chapter>
104106
</topic>

0 commit comments

Comments
 (0)