Skip to content

Commit 3188345

Browse files
committed
BOM
1 parent 40d900b commit 3188345

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

Diff for: source/get-started/download-and-install.txt

+18-5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ Download and Install
3030
to download the driver
3131
and dependencies directly from Maven.
3232

33+
.. step:: Add the Driver Bill of Materials
34+
35+
.. _java-rs-get-started-install-bom:
36+
37+
.. sharedinclude:: dbx/jvm/bom.rst
38+
39+
.. replacement:: gradle-filename
40+
41+
``build.gradle``
42+
3343
.. step:: Install the Project Reactor Library
3444

3545
This guide uses methods from the Reactor library, a library based on the
@@ -87,7 +97,6 @@ Download and Install
8797
<dependency>
8898
<groupId>org.mongodb</groupId>
8999
<artifactId>mongodb-driver-reactivestreams</artifactId>
90-
<version>{+full-version+}</version>
91100
</dependency>
92101
</dependencies>
93102

@@ -97,14 +106,18 @@ Download and Install
97106
.. code-block:: groovy
98107

99108
dependencies {
100-
implementation 'org.mongodb:mongodb-driver-reactivestreams:{+full-version+}'
109+
implementation 'org.mongodb:mongodb-driver-reactivestreams'
101110
}
102-
111+
112+
Because you installed the BOM, you can omit a version in the
113+
{+driver-short+} dependency entry. The version you specify in the
114+
BOM determines the dependency versions to install.
115+
103116
After you configure your dependencies, ensure they are available to your
104117
project by running your dependency manager and refreshing
105118
the project in your IDE.
106-
119+
107120
After you complete these steps, you have a new project
108121
and the driver dependencies installed.
109122

110-
.. include:: /includes/get-started/quickstart-troubleshoot.rst
123+
.. include:: /includes/get-started/quickstart-troubleshoot.rst

Diff for: source/whats-new.txt

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ and features:
3838

3939
.. sharedinclude:: dbx/jvm/v5.4-wn-items.rst
4040

41+
.. replacement:: install-bom-link
42+
43+
the :ref:`Add the Driver Bill of Materials
44+
<java-rs-get-started-install-bom>` step of the Download and
45+
Install tutorial
46+
4147
.. replacement:: sort-option-link
4248

4349
the :ref:`java-rs-client-bulk-write-update` and

0 commit comments

Comments
 (0)