File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed
docs/pages/kotlinx-rpc/topics Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 81
81
where you define your <a href =" services.topic" >RPC services</a > in one set of subprojects and use in the
82
82
other. In such a setup, you can add the plugin only to modules with service definitions
83
83
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 >
90
84
91
85
<code-block lang =" kotlin" >
92
86
plugins {
93
87
kotlin("jvm") version "%kotlin-version%"
94
- id("com.google.devtools.ksp") version "%ksp-version%"
95
88
id("org.jetbrains.kotlinx.rpc.plugin") version "%kotlinx-rpc-version%"
96
89
}
97
-
98
- dependencies {
99
- implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-client")
100
- implementation("org.jetbrains.kotlinx:kotlinx-rpc-krpc-server")
101
- }
102
90
</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 >
103
105
</chapter >
104
106
</topic >
You can’t perform that action at this time.
0 commit comments