Skip to content

Commit 31ef612

Browse files
committed
BOM
1 parent b94572d commit 31ef612

4 files changed

+20
-2
lines changed

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

+1-1
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-coroutine:{+full-version+}")
6+
implementation("org.mongodb:mongodb-driver-kotlin-coroutine")
77
}

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

-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@
66
<dependency>
77
<groupId>org.mongodb</groupId>
88
<artifactId>mongodb-driver-kotlin-coroutine</artifactId>
9-
<version>{+full-version+}</version>
109
</dependency>
1110
</dependencies>

source/quick-start.txt

+15
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ or the `Building Maven
6666
<https://maven.apache.org/guides/development/guide-building-maven.html>`__ guide
6767
for more information on how to set up your project.
6868

69+
.. _kotlin-get-started-install-bom:
70+
71+
Add the Driver Bill of Materials
72+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73+
74+
.. sharedinclude:: dbx/jvm/bom.rst
75+
76+
.. replacement:: gradle-filename
77+
78+
``build.gradle.kts``
79+
6980
.. _add-mongodb-dependency:
7081

7182
Add MongoDB as a Dependency
@@ -82,6 +93,10 @@ packages, add the following entry to your ``pom.xml`` dependencies list:
8293

8394
.. include:: /includes/kotlin-driver-coroutine-maven-versioned.rst
8495

96+
Because you installed the BOM, you can omit a version in the
97+
{+driver-short+} dependency entry. The version you specify in the
98+
BOM determines the dependency versions to install.
99+
85100
After you configure your dependencies, ensure that they are available to your
86101
project by running the dependency manager and refreshing the
87102
project in your IDE.

source/whats-new.txt

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ and features:
3333

3434
.. sharedinclude:: dbx/jvm/v5.4-wn-items.rst
3535

36+
.. replacement:: install-bom-link
37+
38+
the :ref:`kotlin-get-started-install-bom` step of the Quick Start
39+
3640
.. replacement:: sort-option-link
3741

3842
the :ref:`kotlin-client-bulk-write-update` and

0 commit comments

Comments
 (0)