Skip to content

Commit c86923f

Browse files
authored
DOCSP-30943: add bson lib explicitly (mongodb#106)
# Pull Request Info [PR Reviewing Guidelines](https://github.com/mongodb/docs-java/blob/master/REVIEWING.md) JIRA - https://jira.mongodb.org/browse/DOCSP-30943 Staging - [what's new](https://docs-mongodbcom-staging.corp.mongodb.com/kotlin/docsworker-xlarge/DOCSP-30943-v4.10.1-updates/whats-new/#what-s-new-in-4.10) / [serialization page](https://docs-mongodbcom-staging.corp.mongodb.com/kotlin/docsworker-xlarge/DOCSP-30943-v4.10.1-updates/fundamentals/data-formats/serialization/#add-kotlin-serialization-to-your-project) ## Self-Review Checklist - [x] Is this free of any warnings or errors in the RST? - [ ] Did you run a spell-check? - [ ] Did you run a grammar-check? - [ ] Are all the links working?
1 parent 0ed4f96 commit c86923f

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

snooty.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
1717

1818
[constants]
1919
driver = "kotlin"
20+
driver-short = "Kotlin driver"
2021
driver-long = "MongoDB Kotlin Driver"
2122
version = "4.10"
22-
full-version = "4.10.0"
23+
full-version = "4.10.1"
2324
mdb-server = "MongoDB server"
2425
kotlin-docs = "https://kotlinlang.org/docs"
2526

@@ -33,3 +34,4 @@ zstdVersion = "com.github.luben:zstd-jni:1.5.5-2"
3334
logbackVersion = "1.2.11"
3435
log4j2Version = "2.17.1"
3536
serializationVersion = "1.5.1"
37+
bsonVersion = "4.10.1"

source/fundamentals/data-formats/serialization.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ to your project:
6767
:caption: build.gradle.kts
6868

6969
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:{+serializationVersion+}")
70+
implementation("org.mongodb:bson-kotlinx:{+bsonVersion+}")
7071

7172
.. tab::
7273
:tabid: Maven
@@ -82,6 +83,11 @@ to your project:
8283
<artifactId>kotlinx-serialization-core</artifactId>
8384
<version>{+serializationVersion+}</version>
8485
</dependency>
86+
<dependency>
87+
<groupId>org.mongodb</groupId>
88+
<artifactId>bson-kotlinx</artifactId>
89+
<version>{+bsonVersion+}</version>
90+
</dependency>
8591

8692
Annotate Data Classes
8793
---------------------

source/whats-new.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1+
.. _kotlin-whats-new:
2+
13
==========
24
What's New
35
==========
46

5-
.. default-domain:: mongodb
6-
77
.. contents:: On this page
88
:local:
99
:backlinks: none
@@ -26,6 +26,12 @@ Upcoming Breaking Changes
2626
What's New in 4.10
2727
------------------
2828

29+
.. important::
30+
31+
Starting in version 4.10.1 of the {+driver-short+}, you must add
32+
the ``bson-kotlinx`` library as an explicit dependency to use the
33+
``kotlinx-serialization`` library.
34+
2935
- Support for Kotlin server-side usage, both for coroutines and for synchronous applications.
3036
- Codec support for Kotlin data classes.
31-
- Support for Kotlinx.serialization.
37+
- Support for the ``kotlinx.serialization`` library

0 commit comments

Comments
 (0)