Skip to content

Commit 3efe324

Browse files
authored
Prepare 1.6.3 release, update Kotlin to 1.9.22 (#2571)
1 parent 6e234b2 commit 3efe324

File tree

4 files changed

+45
-18
lines changed

4 files changed

+45
-18
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
1.6.3 / 2024-02-16
2+
==================
3+
4+
This release provides a couple of new features and uses Kotlin 1.9.22 as default.
5+
6+
### Class discriminator output mode
7+
8+
Class discriminator provides information for serializing and deserializing [polymorphic class hierarchies](docs/polymorphism.md#sealed-classes).
9+
In case you want to encode more or less information for various third party APIs about types in the output, it is possible to control
10+
addition of the class discriminator with the `JsonBuilder.classDiscriminatorMode` property.
11+
For example, `ClassDiscriminatorMode.NONE` does not add class discriminator at all, in case the receiving party is not interested in Kotlin types.
12+
You can learn more about this feature in the documentation and corresponding [PR](https://github.com/Kotlin/kotlinx.serialization/pull/2532).
13+
14+
### Other features
15+
16+
* Add kebab-case naming strategy (#2531) (thanks to [Emil Kantis](https://github.com/Kantis))
17+
* Add value class support to the ProtoBufSchemaGenerator (#2542) (thanks to [Felipe Rotilho](https://github.com/rotilho))
18+
19+
### Bugfixes and improvements
20+
21+
* Fix: Hocon polymorphic serialization in containers (#2151) (thanks to [LichtHund](https://github.com/LichtHund))
22+
* Actualize lenient mode documentation (#2568)
23+
* Slightly improve error messages thrown from serializer<T>() function (#2533)
24+
* Do not try to coerce input values for properties (#2530)
25+
* Make empty objects and arrays collapsed in pretty print mode (#2506)
26+
* Update Gradle dokka configuration to make sure "source" button is visible in all API docs (#2518, #2524)
27+
128
1.6.2 / 2023-11-30
229
==================
330

README.md

+13-13
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-1.9.21-blue.svg?logo=kotlin)](http://kotlinlang.org)
8-
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.2)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.2)
7+
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.22-blue.svg?logo=kotlin)](http://kotlinlang.org)
8+
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.3)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.3)
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

@@ -95,17 +95,17 @@ Kotlin DSL:
9595

9696
```kotlin
9797
plugins {
98-
kotlin("jvm") version "1.9.21" // or kotlin("multiplatform") or any other kotlin plugin
99-
kotlin("plugin.serialization") version "1.9.21"
98+
kotlin("jvm") version "1.9.22" // or kotlin("multiplatform") or any other kotlin plugin
99+
kotlin("plugin.serialization") version "1.9.22"
100100
}
101101
```
102102

103103
Groovy DSL:
104104

105105
```gradle
106106
plugins {
107-
id 'org.jetbrains.kotlin.multiplatform' version '1.9.21'
108-
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.21'
107+
id 'org.jetbrains.kotlin.multiplatform' version '1.9.22'
108+
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.22'
109109
}
110110
```
111111

@@ -123,7 +123,7 @@ buildscript {
123123
repositories { mavenCentral() }
124124

125125
dependencies {
126-
val kotlinVersion = "1.9.21"
126+
val kotlinVersion = "1.9.22"
127127
classpath(kotlin("gradle-plugin", version = kotlinVersion))
128128
classpath(kotlin("serialization", version = kotlinVersion))
129129
}
@@ -134,7 +134,7 @@ Groovy DSL:
134134

135135
```gradle
136136
buildscript {
137-
ext.kotlin_version = '1.9.21'
137+
ext.kotlin_version = '1.9.22'
138138
repositories { mavenCentral() }
139139
140140
dependencies {
@@ -164,7 +164,7 @@ repositories {
164164
}
165165

166166
dependencies {
167-
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
167+
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
168168
}
169169
```
170170

@@ -176,11 +176,11 @@ repositories {
176176
}
177177
178178
dependencies {
179-
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2"
179+
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3"
180180
}
181181
```
182182

183-
>We also provide `kotlinx-serialization-core` artifact that contains all serialization API but does not have bundled serialization format with it
183+
>We also provide `kotlinx-serialization-core` artifact that contains all serialization API but does not have a bundled serialization format with it
184184
185185
### Android
186186

@@ -266,8 +266,8 @@ Ensure the proper version of Kotlin and serialization version:
266266

267267
```xml
268268
<properties>
269-
<kotlin.version>1.9.21</kotlin.version>
270-
<serialization.version>1.6.2</serialization.version>
269+
<kotlin.version>1.9.22</kotlin.version>
270+
<serialization.version>1.6.3</serialization.version>
271271
</properties>
272272
```
273273

gradle.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#
44

55
group=org.jetbrains.kotlinx
6-
version=1.6.3-SNAPSHOT
6+
version=1.6.4-SNAPSHOT
77

8-
kotlin.version=1.9.21
8+
kotlin.version=1.9.22
99

1010
# This version takes precedence if 'bootstrap' property passed to project
11-
kotlin.version.snapshot=1.9.255-SNAPSHOT
11+
kotlin.version.snapshot=2.0.255-SNAPSHOT
1212
# Also set KONAN_LOCAL_DIST environment variable in bootstrap mode to auto-assign konan.home
1313

1414
junit_version=4.12

integration-test/gradle.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
#
44

5-
mainKotlinVersion=1.9.21
6-
mainLibVersion=1.6.3-SNAPSHOT
5+
mainKotlinVersion=1.9.22
6+
mainLibVersion=1.6.4-SNAPSHOT
77

88
kotlin.code.style=official
99
kotlin.js.compiler=ir

0 commit comments

Comments
 (0)