Skip to content

Commit 94d98db

Browse files
committed
BOM
(cherry picked from commit 3920b16)
1 parent b7fabe3 commit 94d98db

6 files changed

+26
-11
lines changed

source/get-started/download-and-install.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ or `Maven <https://maven.apache.org/>`__.
3434
<{+kotlin-docs+}/docs/jvm-get-started.html>`__ in the {+language+}
3535
language documentation.
3636

37+
.. step:: Add the Driver Bill of Materials
38+
39+
.. _kotlin-sync-get-started-install-bom:
40+
41+
.. sharedinclude:: dbx/jvm/bom.rst
42+
43+
.. replacement:: gradle-filename
44+
45+
``build.gradle.kts``
46+
3747
.. step:: Add MongoDB as a Dependency
3848

3949
If you are using Gradle to manage your
@@ -47,6 +57,10 @@ or `Maven <https://maven.apache.org/>`__.
4757

4858
.. include:: /includes/kotlin-sync-driver-maven-versioned.rst
4959

60+
Because you installed the BOM, you can omit a version in the
61+
{+driver-short+} dependency entry. The version you specify in the
62+
BOM determines the dependency versions to install.
63+
5064
After you configure your dependencies, ensure that they are
5165
available to your project by running the dependency manager and
5266
refreshing the project in your IDE.
@@ -74,11 +88,9 @@ or `Maven <https://maven.apache.org/>`__.
7488
project by running the dependency manager and refreshing the
7589
project in your IDE.
7690

77-
.. To learn more about these packages, see
78-
.. :ref:`kotlin-sync-serialization`.
91+
To learn more about these packages, see :ref:`kotlin-sync-serialization`.
7992

8093
After you complete these steps, you have a new project directory
8194
and the driver dependencies installed.
8295

8396
.. include:: /includes/get-started/quickstart-troubleshoot.rst
84-

source/includes/kotlin-sync-driver-gradle-versioned.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
:copyable: true
44
55
dependencies {
6-
implementation("org.mongodb:mongodb-driver-kotlin-sync:{+full-version+}")
7-
}
6+
implementation("org.mongodb:mongodb-driver-kotlin-sync")
7+
}

source/includes/kotlin-sync-driver-maven-versioned.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
<dependency>
77
<groupId>org.mongodb</groupId>
88
<artifactId>mongodb-driver-kotlin-sync</artifactId>
9-
<version>{+full-version+}</version>
109
</dependency>
11-
</dependencies>
10+
</dependencies>

source/includes/serialization-libs-gradle-versioned.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
:caption: build.gradle.kts
33
:copyable: true
44
5-
implementation("org.mongodb:bson-kotlinx:{+full-version+}")
5+
implementation("org.mongodb:bson-kotlinx")
66
// OR
7-
implementation("org.mongodb:bson-kotlin:{+full-version+}")
7+
implementation("org.mongodb:bson-kotlin")
88

source/includes/serialization-libs-maven-versioned.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
<dependency>
66
<groupId>org.mongodb</groupId>
77
<artifactId>bson-kotlinx</artifactId>
8-
<version>{+full-version+}</version>
98
</dependency>
109
<!--OR-->
1110
<dependency>
1211
<groupId>org.mongodb</groupId>
1312
<artifactId>bson-kotlin</artifactId>
14-
<version>{+full-version+}</version>
1513
</dependency>
1614

source/whats-new.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ and features:
3131

3232
.. sharedinclude:: dbx/jvm/v5.4-wn-items.rst
3333

34+
.. replacement:: install-bom-link
35+
36+
the :ref:`Add the Driver Bill of Materials
37+
<kotlin-sync-get-started-install-bom>` step of the Download and
38+
Install tutorial
39+
3440
.. replacement:: sort-option-link
3541

3642
the :ref:`kotlin-sync-client-bulk-write-update` and

0 commit comments

Comments
 (0)