From eba40b0c06e1705ba74769d3bdc43e1f046f2b8f Mon Sep 17 00:00:00 2001
From: Alexander Sysoev
Date: Mon, 5 Aug 2024 19:34:06 +0200
Subject: [PATCH] Update docs for K2
---
docs/pages/kotlinx-rpc/topics/plugins.topic | 26 +++++++++++----------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/docs/pages/kotlinx-rpc/topics/plugins.topic b/docs/pages/kotlinx-rpc/topics/plugins.topic
index b9ccb15d..6e8716a1 100644
--- a/docs/pages/kotlinx-rpc/topics/plugins.topic
+++ b/docs/pages/kotlinx-rpc/topics/plugins.topic
@@ -81,24 +81,26 @@
where you define your RPC services in one set of subprojects and use in the
other. In such a setup, you can add the plugin only to modules with service definitions
to save time on building your project.
-
- For kotlinx.rpc
library to work correctly with user-defined services,
- two additional configurations are required: the Kotlin compiler plugin and the
- KSP plugin.
- By adding the kotlinx.rpc
and KSP Gradle plugins, all necessary configurations will be automatically set up:
plugins {
kotlin("jvm") version "%kotlin-version%"
- id("com.google.devtools.ksp") version "%ksp-version%"
id("org.jetbrains.kotlinx.rpc.plugin") version "%kotlinx-rpc-version%"
}
-
- dependencies {
- implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-client")
- implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-server")
- }
+
+
+
+ If you are using Kotlin of version prior to 2.0,
+ you must also add KSP Gradle plugin:
+
+
+ plugins {
+ kotlin("jvm") version "1.9.24"
+ id("org.jetbrains.kotlinx.rpc.plugin") version "%kotlinx-rpc-version%"
+ id("com.google.devtools.ksp") version "1.9.24-1.0.20"
+ }
+
+
\ No newline at end of file