Skip to content

Commit 16306f4

Browse files
authored
Prepare 1.9.0 release
1 parent c86e790 commit 16306f4

File tree

4 files changed

+34
-15
lines changed

4 files changed

+34
-15
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
1.9.0 / 2025-06-27
2+
==================
3+
4+
This release updates Kotlin version to 2.2.0, includes several bugfixes and provides serializers for kotlin.time.Instant.
5+
6+
## Add kotlin.time.Instant serializers
7+
8+
Instant class was moved from kotlinx-datetime library to Kotlin standard library.
9+
As a result, kotlinx-datetime 0.7.0 no longer has serializers for the Instant class.
10+
To use new kotlin.time.Instant class in your @Serializable classes,
11+
you can use this 1.9.0 kotlinx-serialization version (Kotlin 2.2 is required).
12+
You can choose between default `InstantSerializer` which uses its string representation,
13+
or specify `InstantComponentSerializer` that represents instant as its components.
14+
See details in the [PR](https://github.com/Kotlin/kotlinx.serialization/pull/2945).
15+
16+
## Other bugfixes
17+
* Fix resize in JsonPath (#2995)
18+
* Fixed proguard rules for obfuscation to work correctly (#2983)
19+
120
1.8.1 / 2025-03-31
221
==================
322

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[![JetBrains official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)
55
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0)
66
[![TeamCity build](https://img.shields.io/teamcity/http/teamcity.jetbrains.com/s/KotlinTools_KotlinxSerialization_Ko.svg)](https://teamcity.jetbrains.com/viewType.html?buildTypeId=KotlinTools_KotlinxSerialization_Ko&guest=1)
7-
[![Kotlin](https://img.shields.io/badge/kotlin-2.1.20-blue.svg?logo=kotlin)](http://kotlinlang.org)
8-
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.8.1)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.8.1)
7+
[![Kotlin](https://img.shields.io/badge/kotlin-2.2.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
8+
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.9.0)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.9.0)
99
[![KDoc link](https://img.shields.io/badge/API_reference-KDoc-blue)](https://kotlinlang.org/api/kotlinx.serialization/)
1010
[![Slack channel](https://img.shields.io/badge/chat-slack-blue.svg?logo=slack)](https://kotlinlang.slack.com/messages/serialization/)
1111

@@ -94,17 +94,17 @@ Kotlin DSL:
9494

9595
```kotlin
9696
plugins {
97-
kotlin("jvm") version "2.1.20" // or kotlin("multiplatform") or any other kotlin plugin
98-
kotlin("plugin.serialization") version "2.1.20"
97+
kotlin("jvm") version "2.2.0" // or kotlin("multiplatform") or any other kotlin plugin
98+
kotlin("plugin.serialization") version "2.2.0"
9999
}
100100
```
101101

102102
Groovy DSL:
103103

104104
```gradle
105105
plugins {
106-
id 'org.jetbrains.kotlin.multiplatform' version '2.1.20'
107-
id 'org.jetbrains.kotlin.plugin.serialization' version '2.1.20'
106+
id 'org.jetbrains.kotlin.multiplatform' version '2.2.0'
107+
id 'org.jetbrains.kotlin.plugin.serialization' version '2.2.0'
108108
}
109109
```
110110

@@ -122,7 +122,7 @@ buildscript {
122122
repositories { mavenCentral() }
123123

124124
dependencies {
125-
val kotlinVersion = "2.1.20"
125+
val kotlinVersion = "2.2.0"
126126
classpath(kotlin("gradle-plugin", version = kotlinVersion))
127127
classpath(kotlin("serialization", version = kotlinVersion))
128128
}
@@ -133,7 +133,7 @@ Groovy DSL:
133133

134134
```gradle
135135
buildscript {
136-
ext.kotlin_version = '2.1.20'
136+
ext.kotlin_version = '2.2.0'
137137
repositories { mavenCentral() }
138138
139139
dependencies {
@@ -163,7 +163,7 @@ repositories {
163163
}
164164

165165
dependencies {
166-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1")
166+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0")
167167
}
168168
```
169169

@@ -175,7 +175,7 @@ repositories {
175175
}
176176
177177
dependencies {
178-
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1"
178+
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0"
179179
}
180180
```
181181

@@ -265,8 +265,8 @@ Ensure the proper version of Kotlin and serialization version:
265265

266266
```xml
267267
<properties>
268-
<kotlin.version>2.1.20</kotlin.version>
269-
<serialization.version>1.8.1</serialization.version>
268+
<kotlin.version>2.2.0</kotlin.version>
269+
<serialization.version>1.9.0</serialization.version>
270270
</properties>
271271
```
272272

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
#
44

55
group=org.jetbrains.kotlinx
6-
version=1.8.2-SNAPSHOT
6+
version=1.9.1-SNAPSHOT
77
jdk_toolchain_version=11
88

99
# This version takes precedence if 'bootstrap' property passed to project
10-
kotlin.version.snapshot=2.1.255-SNAPSHOT
10+
kotlin.version.snapshot=2.2.255-SNAPSHOT
1111
# Also set kotlin.native.home to your $kotlin_project$/kotlin-native/dist if you want to use snapshot Native
1212
#kotlin.native.home=
1313

integration-test/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44

55
mainKotlinVersion=2.2.0
6-
mainLibVersion=1.8.2-SNAPSHOT
6+
mainLibVersion=1.9.1-SNAPSHOT
77

88
kotlin.code.style=official
99

0 commit comments

Comments
 (0)