From f710378e0ef4cc1faf21a3aa6785141fde22b2fa Mon Sep 17 00:00:00 2001 From: Melanie Ballard Date: Thu, 12 Jun 2025 17:00:13 -0400 Subject: [PATCH] DOCSP-49013 BOM Tips added to Java RS (#136) (cherry picked from commit 3fcf374d4f687363313241ba6cff0ac6d90b0aa9) --- .../security/crypt-gradle-versioned.rst | 2 +- .../security/crypt-maven-versioned.rst | 1 - source/security/encrypt.txt | 51 +++++++++++-------- 3 files changed, 30 insertions(+), 24 deletions(-) diff --git a/source/includes/security/crypt-gradle-versioned.rst b/source/includes/security/crypt-gradle-versioned.rst index 9e19230..a7b43c4 100644 --- a/source/includes/security/crypt-gradle-versioned.rst +++ b/source/includes/security/crypt-gradle-versioned.rst @@ -1,5 +1,5 @@ .. code-block:: groovy dependencies { - implementation 'org.mongodb:mongodb-crypt:{+full-version+}' + implementation 'org.mongodb:mongodb-crypt' } \ No newline at end of file diff --git a/source/includes/security/crypt-maven-versioned.rst b/source/includes/security/crypt-maven-versioned.rst index 296339b..db9fa40 100644 --- a/source/includes/security/crypt-maven-versioned.rst +++ b/source/includes/security/crypt-maven-versioned.rst @@ -4,6 +4,5 @@ org.mongodb mongodb-crypt - {+full-version+} diff --git a/source/security/encrypt.txt b/source/security/encrypt.txt index 658fb08..c80286a 100644 --- a/source/security/encrypt.txt +++ b/source/security/encrypt.txt @@ -4,25 +4,32 @@ .. replacement:: driver-specific-content - .. important:: Compatible Encryption Library Version - - The {+driver-short+} uses the `mongodb-crypt - `__ - encryption library for in-use encryption. This driver version - is compatible with ``mongodb-crypt`` v{+full-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/security/crypt-maven-versioned.rst - - .. tab:: Gradle - :tabid: gradle-dependency - - .. include:: /includes/security/crypt-gradle-versioned.rst + Compatible Encryption Library Version + ------------------------------------- + + The {+driver-short+} uses the `mongodb-crypt + `__ + encryption library for in-use encryption. This driver version + is compatible with ``mongodb-crypt`` v{+full-version+}. + + .. sharedinclude:: dbx/jvm/BOM-installation-tip.rst + + .. replacement:: installation-guide + + :ref:`Add the Driver Bill of Materials ` step of the Download and Install 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/security/crypt-maven-versioned.rst + + .. tab:: Gradle + :tabid: gradle-dependency + + .. include:: /includes/security/crypt-gradle-versioned.rst