diff --git a/source/get-started.txt b/source/get-started.txt index 0a2a07058..941d04ff7 100644 --- a/source/get-started.txt +++ b/source/get-started.txt @@ -70,10 +70,19 @@ its dependencies in your development environment. or `Creating New Gradle Builds `__ to learn how to set up your project. + .. step:: Add the {+driver-short+} Bill of Materials + + .. _java-get-started-install-bom: + + .. sharedinclude:: dbx/jvm/bom.rst + + .. replacement:: gradle-filename + + ``build.gradle`` + .. step:: Install the {+driver-short+} - In your IDE, create a new `Maven `__ or `Gradle `__ - project. If you use Maven, add the following code to your ``pom.xml`` dependencies list: + If you use Maven, add the following code to your ``pom.xml`` dependencies list: .. code-block:: xml @@ -81,7 +90,6 @@ its dependencies in your development environment. org.mongodb mongodb-driver-sync - {+full-version+} @@ -90,13 +98,17 @@ its dependencies in your development environment. .. code-block:: groovy dependencies { - implementation 'org.mongodb:mongodb-driver-sync:{+full-version+}' + implementation 'org.mongodb:mongodb-driver-sync' } + Because you installed the BOM, you can omit a version in the + {+driver-short+} dependency entry. The version you specify in the + BOM determines the dependency versions to install. + After you configure your dependencies, ensure they are available to your project by running your dependency manager and refreshing the project in your IDE. - + After you complete these steps, you have a new project and the driver dependencies installed. @@ -247,4 +259,4 @@ visiting the following guides: - :ref:`java-db-coll`: Learn more about interacting with MongoDB databases and collections. - :ref:`java-integrations`: Learn about the third-party - integrations that you can use with the {+driver-short+}. \ No newline at end of file + integrations that you can use with the {+driver-short+}. diff --git a/source/references/whats-new.txt b/source/references/whats-new.txt index 577f6099a..d565b6d36 100644 --- a/source/references/whats-new.txt +++ b/source/references/whats-new.txt @@ -41,6 +41,10 @@ and features: .. sharedinclude:: dbx/jvm/v5.4-wn-items.rst + .. replacement:: install-bom-link + + the :ref:`Add the {+driver-short+} Bill of Materials ` step of the Get Started tutorial + .. replacement:: sort-option-link the :ref:`java-sync-client-bulk-write-update` and