@@ -41,7 +41,7 @@ programming language, see the :driver:`list of official MongoDB drivers <>`.
41
41
Download and Install
42
42
--------------------
43
43
44
- This guide demonstrates how to create a project and add the
44
+ This section demonstrates how to create a project and add the
45
45
{+driver-short+} dependencies by using `Gradle <https://gradle.org/>`__
46
46
or `Maven <https://maven.apache.org/>`__.
47
47
@@ -71,6 +71,16 @@ or `Maven <https://maven.apache.org/>`__.
71
71
<{+kotlin-docs+}/docs/jvm-get-started.html>`__ in the {+language+}
72
72
language documentation.
73
73
74
+ .. step:: Add the Driver Bill of Materials
75
+
76
+ .. _kotlin-sync-get-started-install-bom:
77
+
78
+ .. sharedinclude:: dbx/jvm/bom.rst
79
+
80
+ .. replacement:: gradle-filename
81
+
82
+ ``build.gradle.kts``
83
+
74
84
.. step:: Add MongoDB as a Dependency
75
85
76
86
If you are using Gradle to manage your
@@ -84,6 +94,10 @@ or `Maven <https://maven.apache.org/>`__.
84
94
85
95
.. include:: /includes/kotlin-sync-driver-maven-versioned.rst
86
96
97
+ Because you installed the BOM, you can omit a version in the
98
+ {+driver-short+} dependency entry. The version you specify in the
99
+ BOM determines the dependency versions to install.
100
+
87
101
After you configure your dependencies, ensure that they are
88
102
available to your project by running the dependency manager and
89
103
refreshing the project in your IDE.
@@ -111,8 +125,7 @@ or `Maven <https://maven.apache.org/>`__.
111
125
project by running the dependency manager and refreshing the
112
126
project in your IDE.
113
127
114
- .. To learn more about these packages, see
115
- .. :ref:`kotlin-sync-serialization`.
128
+ To learn more about these packages, see :ref:`kotlin-sync-serialization`.
116
129
117
130
After you complete these steps, you have a new project directory
118
131
and the driver dependencies installed.
0 commit comments