@@ -5,40 +5,40 @@ Dependency Management
55
66.. include:: /includes/scala-java-dependencies.rst
77
8- Beginning in version 3.2.0, Apache Spark supports both Scala {+scala-previous+} and {+scala-latest+}.
9- Spark 3.1.3 and previous versions support only Scala {+scala-previous+}.
8+ Beginning in version 3.2.0, Apache Spark supports both Scala 2.12 and 2.13.
9+ Spark 3.1.3 and previous versions support only Scala 2.12.
1010To provide support for both Scala versions, version {+current-version+} of the Spark
1111Connector produces two artifacts:
1212
13- - ``org.mongodb.spark:mongo-spark-connector_{+scala-previous +}:{+current-version+}`` is
14- compiled against Scala {+scala-previous+} , and supports Spark 3.1.x and above.
15- - ``org.mongodb.spark:mongo-spark-connector_{+scala-latest +}:{+current-version+}`` is
16- compiled against Scala {+scala-latest+} , and supports Spark 3.2.x and above.
13+ - ``org.mongodb.spark:{+artifact-id-2-12 +}:{+current-version+}`` is
14+ compiled against Scala 2.12 , and supports Spark 3.1.x and above.
15+ - ``org.mongodb.spark:{+artifact-id-2-13 +}:{+current-version+}`` is
16+ compiled against Scala 2.13 , and supports Spark 3.2.x and above.
1717
1818.. important::
1919
2020 Use the Spark Connector artifact that's compatible with your
2121 versions of Scala and Spark.
2222
2323The following excerpt from a Maven ``pom.xml`` file shows how to include dependencies
24- compatible with Scala {+scala-previous+} :
24+ compatible with Scala 2.12 :
2525
2626.. code-block:: xml
2727
2828 <dependencies>
2929 <dependency>
3030 <groupId>org.mongodb.spark</groupId>
31- <artifactId>mongo-spark-connector_{+scala-previous +}</artifactId>
31+ <artifactId>{+artifact-id-2-12 +}</artifactId>
3232 <version>{+current-version+}</version>
3333 </dependency>
3434 <dependency>
3535 <groupId>org.apache.spark</groupId>
36- <artifactId>spark-core_{+scala-previous+} </artifactId>
36+ <artifactId>spark-core_2.12 </artifactId>
3737 <version>{+spark-core-version+}</version>
3838 </dependency>
3939 <dependency>
4040 <groupId>org.apache.spark</groupId>
41- <artifactId>spark-sql_{+scala-previous+} </artifactId>
41+ <artifactId>spark-sql_2.12 </artifactId>
4242 <version>{+spark-sql-version+}</version>
4343 </dependency>
4444 </dependencies>
0 commit comments