Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 7 additions & 2 deletions source/builders/builders-data-classes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ To implement this functionality, you must add the
``mongodb-driver-kotlin-extensions`` dependency to your dependencies
list.

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

.. replacement:: installation-guide

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

Select from the following tabs to see how to add the extension
dependency to your project by using the :guilabel:`Gradle` and
:guilabel:`Maven` package managers:
Expand All @@ -64,7 +70,7 @@ dependency to your project by using the :guilabel:`Gradle` and
.. code-block:: kotlin
:caption: build.gradle.kts

implementation("org.mongodb:mongodb-driver-kotlin-extensions:{+full-version+}")
implementation("org.mongodb:mongodb-driver-kotlin-extensions")

.. tab::
:tabid: Maven
Expand All @@ -78,7 +84,6 @@ dependency to your project by using the :guilabel:`Gradle` and
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-driver-kotlin-extensions</artifactId>
<version>{+full-version+}</version>
</dependency>

After you install the extensions dependency, you can use the extension
Expand Down
6 changes: 6 additions & 0 deletions source/data-formats/bson.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ For instructions on how to add the {+driver-long+} as a dependency to your proje
:ref:`driver installation <kotlin-sync-download-install>` section of our Get Started
guide.

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

.. replacement:: installation-guide

:ref:`Add the Driver Bill of Materials <kotlin-sync-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 {+language+}
project's dependencies. The following instructions detail the dependency declarations for
Expand Down
7 changes: 7 additions & 0 deletions source/data-formats/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ application. To learn more about this library, see the
`kotlinx.serialization GitHub repository
<https://github.com/Kotlin/kotlinx.serialization>`__.

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

.. replacement:: installation-guide

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


Select from the following tabs to see how to add the serialization
dependencies to your project by using either :guilabel:`Gradle` or
:guilabel:`Maven`:
Expand Down
2 changes: 1 addition & 1 deletion source/includes/data-formats/bson-gradle-versioned.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.. code-block:: kotlin

dependencies {
implementation("org.mongodb:bson:{+full-version+}")
implementation("org.mongodb:bson")
}
1 change: 0 additions & 1 deletion source/includes/data-formats/bson-maven-versioned.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson</artifactId>
<version>{+full-version+}</version>
</dependency>
</dependencies>
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
:caption: build.gradle.kts

implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:{+serialization-version+}")
implementation("org.mongodb:bson-kotlinx:{+full-version+}")
implementation("org.mongodb:bson-kotlinx")
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>bson-kotlinx</artifactId>
<version>{+full-version+}</version>
</dependency>
2 changes: 1 addition & 1 deletion source/includes/security/crypt-gradle-versioned.rst
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")
}
1 change: 0 additions & 1 deletion source/includes/security/crypt-maven-versioned.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongodb-crypt</artifactId>
<version>{+mongocrypt-version+}</version>
</dependency>
</dependencies>
1 change: 0 additions & 1 deletion source/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
Run a Command </run-command>
Monitoring </monitoring>
Security </security>
In-Use Encryption </security/encrypt-fields>
Compatibility </compatibility>
Validate Driver Signatures </validate-signatures>
What's New </whats-new>
Expand Down
2 changes: 1 addition & 1 deletion source/security/authentication.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ mechanism:
:end-before: end-default-mongo-cred
:dedent:

You can also explicitly specify the `SCRAM-SHA-256`` authentication mechanism,
You can also explicitly specify the ``SCRAM-SHA-256`` authentication mechanism,
as shown in the following code snippets.

Select the :guilabel:`Connection String` or the :guilabel:`MongoCredential`
Expand Down
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/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
<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 <kotlin-sync-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/security/crypt-maven-versioned.rst

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

.. include:: /includes/security/crypt-gradle-versioned.rst
Loading