|
| 1 | +.. _scala-install: |
| 2 | + |
| 3 | +============ |
| 4 | +Installation |
| 5 | +============ |
| 6 | + |
| 7 | +.. facet:: |
| 8 | + :name: genre |
| 9 | + :values: reference |
| 10 | + |
| 11 | +.. meta:: |
| 12 | + :keywords: dependency, reactive streams, add package, sbt, maven |
| 13 | + |
| 14 | +The recommended way to get started with the {+driver-short+} in your |
| 15 | +project is by using a dependency management system. |
| 16 | + |
| 17 | +The following sections contain the Reactive Streams-based Scala |
| 18 | +implementation for asynchronous stream processing with non-blocking back |
| 19 | +pressure. |
| 20 | + |
| 21 | +Scala 2.12 Based Driver |
| 22 | +----------------------- |
| 23 | + |
| 24 | +.. tabs:: |
| 25 | + |
| 26 | + .. tab:: Maven |
| 27 | + :tabid: maven-installation |
| 28 | + |
| 29 | + If you are using `Maven <https://maven.apache.org/>`__ to manage your |
| 30 | + packages, add the following entry to your ``pom.xml`` dependencies list: |
| 31 | + |
| 32 | + .. code-block:: xml |
| 33 | + |
| 34 | + <dependencies> |
| 35 | + <dependency> |
| 36 | + <groupId>org.mongodb.scala</groupId> |
| 37 | + <artifactId>mongo-scala-driver</artifactId> |
| 38 | + <version>{+full-version+}_2.12</version> |
| 39 | + </dependency> |
| 40 | + </dependencies> |
| 41 | + |
| 42 | + .. tab:: sbt |
| 43 | + :tabid: sbt-installation |
| 44 | + |
| 45 | + If you are using `sbt <https://www.scala-sbt.org/>`__ to manage your |
| 46 | + packages, add the following entry to your ``build.sbt`` file: |
| 47 | + |
| 48 | + .. code-block:: none |
| 49 | + |
| 50 | + libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "{+full-version+}" |
| 51 | + |
| 52 | +Scala 2.11 Based Driver |
| 53 | +----------------------- |
| 54 | + |
| 55 | +.. tabs:: |
| 56 | + |
| 57 | + .. tab:: Maven |
| 58 | + :tabid: maven-installation |
| 59 | + |
| 60 | + If you are using `Maven <https://maven.apache.org/>`__ to manage your |
| 61 | + packages, add the following entry to your ``pom.xml`` dependencies list: |
| 62 | + |
| 63 | + .. code-block:: xml |
| 64 | + |
| 65 | + <dependencies> |
| 66 | + <dependency> |
| 67 | + <groupId>org.mongodb.scala</groupId> |
| 68 | + <artifactId>mongo-scala-driver</artifactId> |
| 69 | + <version>{+full-version+}_2.11</version> |
| 70 | + </dependency> |
| 71 | + </dependencies> |
| 72 | + |
| 73 | + .. tab:: sbt |
| 74 | + :tabid: sbt-installation |
| 75 | + |
| 76 | + If you are using `sbt <https://www.scala-sbt.org/>`__ to manage your |
| 77 | + packages, add the following entry to your ``build.sbt`` file: |
| 78 | + |
| 79 | + .. code-block:: none |
| 80 | + |
| 81 | + libraryDependencies += "org.mongodb.scala" %% "mongo-scala-driver" % "{+full-version+}" |
0 commit comments