Skip to content

Commit cd973fe

Browse files
committed
DOCSP-49013-Java Sync Bom Tips
1 parent a55d345 commit cd973fe

File tree

6 files changed

+37
-26
lines changed

6 files changed

+37
-26
lines changed

source/data-formats/document-data-format-bson.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ MongoDB Java driver as a dependency to your project, see the
6363
:ref:`driver installation <java-get-started-download-and-install>` section of our Quick Start
6464
guide.
6565

66+
.. sharedinclude:: dbx/jvm/BOM-installation-tip.rst
67+
68+
.. replacement:: installation-guide
69+
70+
:ref:`Add the Driver Bill of Materials <java-get-started-install-bom>` step of the Quick Start guide.
71+
6672
We recommend that you use the `Maven <https://maven.apache.org/>`__ or
6773
`Gradle <https://gradle.org/>`__ build automation tool to manage your project's
6874
dependencies. Select from the following tabs to see the dependency declaration
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. code-block:: groovy
22
33
dependencies {
4-
compile 'org.mongodb:bson:{+full-version+}'
4+
compile 'org.mongodb:bson'
55
}
66

source/includes/fundamentals/code-snippets/bson-maven-versioned.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<dependency>
55
<groupId>org.mongodb</groupId>
66
<artifactId>bson</artifactId>
7-
<version>{+full-version+}</version>
87
</dependency>
98
</dependencies>
109
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.. code-block:: groovy
22
33
dependencies {
4-
implementation 'org.mongodb:mongodb-crypt:{+mongocrypt-version+}'
4+
implementation 'org.mongodb:mongodb-crypt'
55
}

source/includes/fundamentals/code-snippets/crypt-maven-versioned.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<dependency>
55
<groupId>org.mongodb</groupId>
66
<artifactId>mongodb-crypt</artifactId>
7-
<version>{+mongocrypt-version+}</version>
87
</dependency>
98
</dependencies>
109

source/security/encrypt-fields.txt

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,32 @@
44

55
.. replacement:: driver-specific-content
66

7-
.. important:: Compatible Encryption Library Version
8-
9-
The {+driver-short+} uses the `mongodb-crypt
10-
<https://mvnrepository.com/artifact/org.mongodb/mongodb-crypt>`__
11-
encryption library for in-use encryption. This driver version
12-
is compatible with ``mongodb-crypt`` v{+mongocrypt-version+}.
13-
14-
Select from the following :guilabel:`Maven` and
15-
:guilabel:`Gradle` tabs to see how to add the ``mongodb-crypt``
16-
dependency to your project by using the specified manager:
17-
18-
.. tabs::
19-
20-
.. tab:: Maven
21-
:tabid: maven-dependency
22-
23-
.. include:: /includes/fundamentals/code-snippets/crypt-maven-versioned.rst
24-
25-
.. tab:: Gradle
26-
:tabid: gradle-dependency
27-
28-
.. include:: /includes/fundamentals/code-snippets/crypt-gradle-versioned.rst
7+
Compatible Encryption Library Version
8+
-------------------------------------
9+
10+
The {+driver-short+} uses the `mongodb-crypt
11+
<https://mvnrepository.com/artifact/org.mongodb/mongodb-crypt>`__
12+
encryption library for in-use encryption. This driver version
13+
is compatible with ``mongodb-crypt`` v{+mongocrypt-version+}.
14+
15+
.. sharedinclude:: dbx/jvm/BOM-installation-tip.rst
16+
17+
.. replacement:: installation-guide
18+
19+
:ref:`Add the Driver Bill of Materials <java-get-started-install-bom>` step of the Quick Start guide.
20+
21+
Select from the following :guilabel:`Maven` and
22+
:guilabel:`Gradle` tabs to see how to add the ``mongodb-crypt``
23+
dependency to your project by using the specified manager:
24+
25+
.. tabs::
26+
27+
.. tab:: Maven
28+
:tabid: maven-dependency
29+
30+
.. include:: /includes/fundamentals/code-snippets/crypt-maven-versioned.rst
31+
32+
.. tab:: Gradle
33+
:tabid: gradle-dependency
34+
35+
.. include:: /includes/fundamentals/code-snippets/crypt-gradle-versioned.rst

0 commit comments

Comments
 (0)