Skip to content

Commit 07d8d08

Browse files
authored
Updated Kotlin to 1.9.24 (#59)
1 parent f5f5080 commit 07d8d08

File tree

7 files changed

+35
-34
lines changed

7 files changed

+35
-34
lines changed

GETTING_STARTED.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ To use these dependencies, in your project's `build.gradle.kts` file you can def
4545
```kotlin
4646
dependencies {
4747
// example kotlinx.rpc artifacts
48-
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-client:1.9.23-0.1.0")
49-
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-server:1.9.23-0.1.0")
48+
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-client:1.9.24-0.1.0")
49+
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-server:1.9.24-0.1.0")
5050
}
5151
```
5252
That will add you the APIs needed to work with both client and server using `kotlinx.rpc`.
@@ -59,12 +59,12 @@ kotlin {
5959
sourceSets {
6060
iosMain {
6161
// let's say that we have code for the client in iosMain sources set
62-
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-client:1.9.23-0.1.0")
62+
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-client:1.9.24-0.1.0")
6363
}
6464

6565
jvmMain {
6666
// let's say that we have code for the server in jvmMain sources set
67-
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-server:1.9.23-0.1.0")
67+
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-server:1.9.24-0.1.0")
6868
}
6969
}
7070
}
@@ -85,7 +85,7 @@ so the dependency declaration may look like this:
8585
```toml
8686
# gradle/libs.versions.toml
8787
[versions]
88-
kotlinx-rpc = "1.9.23-0.1.0"
88+
kotlinx-rpc = "1.9.24-0.1.0"
8989

9090
[libraries]
9191
kotlinx-rpc-client = { module = "org.jetbrains.kotlinx:kotlinx-rpc-runtime-client", version.ref = "kotlinx-rpc" }
@@ -129,7 +129,7 @@ plugins {
129129
}
130130
```
131131

132-
> Note that we use version `0.1.0` here, instead of `1.9.23-0.1.0`
132+
> Note that we use version `0.1.0` here, instead of `1.9.24-0.1.0`
133133
that we used in [runtime dependencies](#runtime-dependencies).
134134
We will describe why in the [versioning](#library-versioning) section.
135135

@@ -158,12 +158,12 @@ you can write this:
158158

159159
```kotlin
160160
plugins {
161-
kotlin("jvm") version "1.9.23"
161+
kotlin("jvm") version "1.9.24"
162162
id("org.jetbrains.kotlinx.rpc.platform") version "0.1.0"
163163
}
164164

165165
dependencies {
166-
// versions are set automatically to 1.9.23-0.1.0
166+
// versions are set automatically to 1.9.24-0.1.0
167167
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-client")
168168
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-server")
169169
}
@@ -202,8 +202,8 @@ and all the needed configuration will be automatically set up by the plugin:
202202

203203
```kotlin
204204
plugins {
205-
kotlin("jvm") version "1.9.23"
206-
id("com.google.devtools.ksp") version "1.9.23-1.0.17"
205+
kotlin("jvm") version "1.9.24"
206+
id("com.google.devtools.ksp") version "1.9.24-1.0.20"
207207
id("org.jetbrains.kotlinx.rpc.plugin") version "0.1.0"
208208
}
209209

@@ -226,8 +226,8 @@ to save time on building your project.
226226
Gradle plugin to your project.
227227
```kotlin
228228
plugins {
229-
kotlin("jvm") version "1.9.23"
230-
kotlin("plugin.serialization") version "1.9.23"
229+
kotlin("jvm") version "1.9.24"
230+
kotlin("plugin.serialization") version "1.9.24"
231231
}
232232
```
233233
More on the serialization in the [dedicated](#serialization-dsl) section.
@@ -241,13 +241,13 @@ We will break it down for you in this section.
241241
`kotlinx.rpc` version for all [runtime dependencies](#runtime-dependencies)
242242
consists of two parts: Kotlin version prefix and core (feature) version suffix.
243243
```
244-
1.9.23-0.1.0
244+
1.9.24-0.1.0
245245
```
246-
Here `1.9.23` is the version of Kotlin of your project.
246+
Here `1.9.24` is the version of Kotlin of your project.
247247
It can be found out by looking at Kotlin Gradle Plugin:
248248
```kotlin
249249
plugins {
250-
kotlin("jvm") version "1.9.23"
250+
kotlin("jvm") version "1.9.24"
251251
}
252252
```
253253
As `kotlinx.rpc` uses Kotlin compiler plugin and KSP plugins,
@@ -259,18 +259,18 @@ would require updating the project's Kotlin version, which is not always possibl
259259
To address that issue,
260260
we provide core version updates for all stable versions of
261261
**the last three** major Kotlin releases.
262-
So if the last stable Kotlin version is `1.9.23`, as at the time of writing this guide,
262+
So if the last stable Kotlin version is `1.9.24`, as at the time of writing this guide,
263263
the following versions of Kotlin are supported:
264264

265265
- 1.7.0, 1.7.10, 1.7.20, 1.7.21, 1.7.22
266266
- 1.8.0, 1.8.10, 1.8.20, 1.8.21, 1.8.22
267-
- 1.9.0, 1.9.10, 1.9.20, 1.9.21, 1.9.22, 1.9.23
267+
- 1.9.0, 1.9.10, 1.9.20, 1.9.21, 1.9.22, 1.9.23, 1.9.24
268268

269269
So for each of the listed Kotlin versions,
270270
you can use `<kotlin_version>-<core_version>` template
271271
to get the needed library version.
272272
(So, for core version `0.1.0`, there are `1.7.0-0.1.0`,
273-
`1.7.0-0.1.0`, ... , `1.9.23-0.1.0` versions present).
273+
`1.7.0-0.1.0`, ... , `1.9.24-0.1.0` versions present).
274274
To simplify project configuration, both our [Gradle plugins](#gradle-plugins)
275275
are able to set proper runtime dependencies versions automatically based
276276
on the project's Kotlin version and the Gradle plugin version
@@ -279,12 +279,12 @@ which is used as a core library version.
279279
To summarize, we can look at the example:
280280
```kotlin
281281
plugins {
282-
kotlin("jvm") version "1.9.23" // project's Kotlin version
282+
kotlin("jvm") version "1.9.24" // project's Kotlin version
283283
id("org.jetbrains.kotlinx.rpc.platform") version "0.1.0" // kotlinx.rpc core version
284284
}
285285

286286
dependencies {
287-
// for kotlinx.rpc runtime dependencies, Gradle plugin sets version 1.9.23-0.1.0
287+
// for kotlinx.rpc runtime dependencies, Gradle plugin sets version 1.9.24-0.1.0
288288
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-client")
289289
implementation("org.jetbrains.kotlinx:kotlinx-rpc-runtime-server")
290290
}

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
[![Kotlin Experimental](https://kotl.in/badges/experimental.svg)](https://kotlinlang.org/docs/components-stability.html)
99
[![Official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
10-
[![Kotlin](https://img.shields.io/badge/kotlin-1.7.0--1.9.23-blue.svg?logo=kotlin)](http://kotlinlang.org)
10+
[![Kotlin](https://img.shields.io/badge/kotlin-1.7.0--1.9.24-blue.svg?logo=kotlin)](http://kotlinlang.org)
1111
[![GitHub License](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
1212

1313
[//]: # ([![TeamCity build]&#40;https://img.shields.io/teamcity/build/s/Build_kRPC_All.svg?server=http%3A%2F%2Fkrpc.teamcity.com&#41;]&#40;https://teamcity.jetbrains.com/viewType.html?buildTypeId=Build_kRPC_All&guest=1&#41;)
@@ -97,9 +97,9 @@ Example of plugins setup in a project's `build.gradle.kts`:
9797
```kotlin
9898
// build.gradle.kts
9999
plugins {
100-
kotlin("jvm") version "1.9.23"
101-
kotlin("plugin.serialization") version "1.9.23"
102-
id("com.google.devtools.ksp") version "1.9.23-1.0.19"
100+
kotlin("jvm") version "1.9.24"
101+
kotlin("plugin.serialization") version "1.9.24"
102+
id("com.google.devtools.ksp") version "1.9.24-1.0.20"
103103
id("org.jetbrains.kotlinx.rpc.plugin") version "0.1.0"
104104
}
105105
```
@@ -154,18 +154,18 @@ To mitigate inconveniences related to the need to update Kotlin version then one
154154
`kotlinx.rpc` provides all its feature releases for all stable releases of the 3 last major Kotlin versions. Currently, they are:
155155
- 1.7.0, 1.7.10, 1.7.20, 1.7.21, 1.7.22
156156
- 1.8.0, 1.8.10, 1.8.20, 1.8.21, 1.8.22
157-
- 1.9.0, 1.9.10, 1.9.20, 1.9.21, 1.9.22, 1.9.23
157+
- 1.9.0, 1.9.10, 1.9.20, 1.9.21, 1.9.22, 1.9.23, 1.9.24
158158

159159
That generates resulting versions `1.7.0-1.0.0`, `1.7.10-1.0.0`, etc.
160160
To simplify project configuration, our Gradle plugin sets proper library version automatically using BOM, based on the project's Kotlin version:
161161
```kotlin
162162
plugins {
163-
kotlin("jvm") version "1.9.23"
163+
kotlin("jvm") version "1.9.24"
164164
id("org.jetbrains.kotlinx.rpc.plugin") version "1.0.0"
165165
}
166166

167167
dependencies {
168-
implemntation("org.jetbrains.kotlinx:kotlinx-rpc-runtime") // version is 1.9.23-1.0.0 is set by Gradle plugin
168+
implemntation("org.jetbrains.kotlinx:kotlinx-rpc-runtime") // version is 1.9.24-1.0.0 is set by Gradle plugin
169169
}
170170
```
171171

gradle-settings-conventions/src/main/kotlin/compiler-specific-modules.settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ object CSM {
1717
// So [1.7, 1.7.10, 1.9.10, 1.7.22, 1.9, 1, 1.7.0, 1.8]
1818
// will be sorted as [1.7.0, 1.7.10, 1.7.22, 1.7, 1.8, 1.9.10, 1.9, 1]
1919
// It's ok to have version '1'. For example, we may have '1.7' and '1' specific modules.
20-
// That would mean, that all 1.7.* versions we compile with '1.7' module, and 1.8.+ up to 1.9.23 will be with '1' module
20+
// That would mean, that all 1.7.* versions we compile with '1.7' module, and 1.8.+ up to 1.9.24 will be with '1' module
2121
class CompilerModuleSemVer(fullName: String, prefix: String) : Comparable<CompilerModuleSemVer> {
2222
// For example, "compiler-plugin-1_7_10" -> "1.7.10"
2323
val version = fullName

gradle/kotlin-versions-lookup.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Kotlin, ksp, atomicfu, serialization, coroutines, ktor, detekt-gradle-plugin, kotlin-logging, gradle-kotlin-dsl, binary-compatibility-validator, kover
2+
1.9.24, 1.0.20, 0.22.0, 1.6.1, 1.7.3, 2.3.6, 1.23.4, 5.1.0, 4.1.0, 0.13.2, 0.7.6
23
1.9.23, 1.0.19, 0.22.0, 1.6.1, 1.7.3, 2.3.6, 1.23.4, 5.1.0, 4.1.0, 0.13.2, 0.7.6
34
1.9.22, 1.0.17, 0.22.0, 1.6.1, 1.7.3, 2.3.6, 1.23.4, 5.1.0, 4.1.0, 0.13.2, 0.7.6
45
1.9.21, 1.0.16, 0.22.0, 1.6.1, 1.7.3, 2.3.6, 1.23.4, 5.1.0, 4.1.0, 0.13.2, 0.7.6

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[versions]
22
# kotlin
3-
kotlin-lang = "1.9.23"
3+
kotlin-lang = "1.9.24"
44
rpc-core = "6.0-beta" # version for plugins and suffix for rpc-full
55

66
# kotlin-dependent versions, will be replaced with the actual versions by a settings-conventions plugin

samples/ktor-web-app/gradle/libs.versions.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[versions]
2-
kotlin = "1.9.23"
2+
kotlin = "1.9.24"
33
kotlin-wrappers-bom = "1.0.0-pre.685"
44
ktor = "2.3.11"
55
kotlinx-serialization-json = "1.6.1"
66
kotlinx-coroutines-core = "1.7.3"
77
logback = "1.4.4"
88
krpc = "6.0-beta"
9-
ksp = "1.9.23-1.0.19"
9+
ksp = "1.9.24-1.0.20"
1010

1111
[libraries]
1212
# kotlin

samples/simple-ktor-app/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
*/
44

55
plugins {
6-
kotlin("jvm") version "1.9.23"
7-
kotlin("plugin.serialization") version "1.9.23"
6+
kotlin("jvm") version "1.9.24"
7+
kotlin("plugin.serialization") version "1.9.24"
88
id("io.ktor.plugin") version "2.3.11"
9-
id("com.google.devtools.ksp") version "1.9.23-1.0.19"
9+
id("com.google.devtools.ksp") version "1.9.24-1.0.20"
1010
id("org.jetbrains.kotlinx.rpc.plugin") version "6.0-beta"
1111
}
1212

0 commit comments

Comments
 (0)