Skip to content

DOCSP-49013-BOM Tips for Java Sync #706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/data-formats/document-data-format-bson.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ MongoDB Java driver as a dependency to your project, see the
:ref:`driver installation <java-get-started-download-and-install>` section of our Quick Start
guide.

.. sharedinclude:: dbx/jvm/BOM-installation-tip.rst

.. replacement:: installation-guide

:ref:`Add the Driver Bill of Materials <java-get-started-install-bom>` step of the Get Started guide.

We recommend that you use the `Maven <https://maven.apache.org/>`__ or
`Gradle <https://gradle.org/>`__ build automation tool to manage your project's
dependencies. Select from the following tabs to see the dependency declaration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. code-block:: groovy

dependencies {
compile 'org.mongodb:bson:{+full-version+}'
compile 'org.mongodb:bson'
}

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson</artifactId>
<version>{+full-version+}</version>
</dependency>
</dependencies>

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. code-block:: groovy

dependencies {
implementation 'org.mongodb:mongodb-crypt:{+mongocrypt-version+}'
implementation 'org.mongodb:mongodb-crypt'
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-crypt</artifactId>
<version>{+mongocrypt-version+}</version>
</dependency>
</dependencies>

51 changes: 29 additions & 22 deletions source/security/encrypt-fields.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,32 @@

.. replacement:: driver-specific-content

.. important:: Compatible Encryption Library Version

The {+driver-short+} uses the `mongodb-crypt
<https://mvnrepository.com/artifact/org.mongodb/mongodb-crypt>`__
encryption library for in-use encryption. This driver version
is compatible with ``mongodb-crypt`` v{+mongocrypt-version+}.

Select from the following :guilabel:`Maven` and
:guilabel:`Gradle` tabs to see how to add the ``mongodb-crypt``
dependency to your project by using the specified manager:

.. tabs::

.. tab:: Maven
:tabid: maven-dependency

.. include:: /includes/fundamentals/code-snippets/crypt-maven-versioned.rst

.. tab:: Gradle
:tabid: gradle-dependency

.. include:: /includes/fundamentals/code-snippets/crypt-gradle-versioned.rst
Compatible Encryption Library Version
-------------------------------------

The {+driver-short+} uses the `mongodb-crypt
<https://mvnrepository.com/artifact/org.mongodb/mongodb-crypt>`__
encryption library for in-use encryption. This driver version
is compatible with ``mongodb-crypt`` v{+mongocrypt-version+}.

.. sharedinclude:: dbx/jvm/BOM-installation-tip.rst

.. replacement:: installation-guide

:ref:`Add the Driver Bill of Materials <java-get-started-install-bom>` step of the Get Started guide.

Select from the following :guilabel:`Maven` and
:guilabel:`Gradle` tabs to see how to add the ``mongodb-crypt``
dependency to your project by using the specified manager:

.. tabs::

.. tab:: Maven
:tabid: maven-dependency

.. include:: /includes/fundamentals/code-snippets/crypt-maven-versioned.rst

.. tab:: Gradle
:tabid: gradle-dependency

.. include:: /includes/fundamentals/code-snippets/crypt-gradle-versioned.rst
Loading