File tree 2 files changed +8
-50
lines changed
2 files changed +8
-50
lines changed Original file line number Diff line number Diff line change @@ -74,51 +74,11 @@ its dependencies in your development environment.
74
74
75
75
.. _java-get-started-install-bom:
76
76
77
- In your IDE, create a new `Maven <https://maven.apache.org/>`__ or
78
- `Gradle <https://gradle.org/>`__ project. Add the Bill of
79
- Materials (BOM) for MongoDB JVM artifacts to your project to
80
- organize dependency versions. The BOM simplifies dependency
81
- management by ensuring that you maintain consistent and compatible
82
- versions of dependencies, such as between the {+driver-short+} and
83
- the core driver library. Use the BOM to avoid version conflicts
84
- and simplify upgrades.
85
-
86
- Select from the following :guilabel:`Maven` and :guilabel:`Gradle` tabs
87
- to view instructions for adding the BOM for each dependency manager:
88
-
89
- .. tabs::
90
-
91
- .. tab:: Maven
92
- :tabid: maven bom
77
+ .. sharedinclude:: dbx/jvm/v5.4-wn-items.rst
78
+
79
+ .. replacement:: gradle-filename
93
80
94
- Add the following code to the ``dependencyManagement`` list in your
95
- ``pom.xml`` file:
96
-
97
- .. code-block:: xml
98
-
99
- <dependencyManagement>
100
- <dependencies>
101
- <dependency>
102
- <groupId>org.mongodb</groupId>
103
- <artifactId>mongodb-driver-bom</artifactId>
104
- <version>{+full-version+}</version>
105
- <type>pom</type>
106
- <scope>import</scope>
107
- </dependency>
108
- </dependencies>
109
- </dependencyManagement>
110
-
111
- .. tab:: Gradle
112
- :tabid: gradle bom
113
-
114
- Add the following code to dependencies list in your
115
- ``build.gradle`` file:
116
-
117
- .. code-block:: groovy
118
-
119
- dependencies {
120
- implementation(platform("org.mongodb:mongodb-driver-bom:{+full-version+}"))
121
- }
81
+ ``build.gradle``
122
82
123
83
.. step:: Install the {+driver-short+}
124
84
Original file line number Diff line number Diff line change @@ -39,14 +39,12 @@ What's New in 5.4
39
39
The 5.4 driver release includes the following changes, fixes,
40
40
and features:
41
41
42
- - Introduces a Bill of Materials (BOM) to manage versions of MongoDB JVM
43
- artifacts that you might use in your application. To view instructions on
44
- adding the BOM to your application, see the
45
- :ref:`Add the {+driver-short+} Bill of Materials
46
- <java-get-started-install-bom>` step of the Get Started tutorial.
47
-
48
42
.. sharedinclude:: dbx/jvm/v5.4-wn-items.rst
49
43
44
+ .. replacement:: install-bom-link
45
+
46
+ the :ref:`Add the {+driver-short+} Bill of Materials <java-get-started-install-bom>` step of the Get Started tutorial
47
+
50
48
.. replacement:: sort-option-link
51
49
52
50
the :ref:`java-sync-client-bulk-write-update` and
You can’t perform that action at this time.
0 commit comments