Skip to content

Commit a45b2aa

Browse files
committed
add install instructions
1 parent 7ad7923 commit a45b2aa

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

source/fundamentals/encrypt-fields.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,19 @@
1010
<https://mvnrepository.com/artifact/org.mongodb/mongodb-crypt>`__
1111
encryption library for in-use encryption. This driver version
1212
is compatible with ``mongodb-crypt`` v{+full-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
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.. code-block:: groovy
2+
3+
dependencies {
4+
implementation 'org.mongodb:mongodb-crypt:{+full-version+}'
5+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.. code-block:: xml
2+
3+
<dependencies>
4+
<dependency>
5+
<groupId>org.mongodb</groupId>
6+
<artifactId>mongodb-crypt</artifactId>
7+
<version>{+full-version+}</version>
8+
</dependency>
9+
</dependencies>
10+

0 commit comments

Comments
 (0)