|
1 |
| - |
2 | 1 | name := "writeRead"
|
3 |
| - |
4 | 2 | version := "0.1"
|
5 |
| - |
6 | 3 | scalaVersion := "2.11.8"
|
7 | 4 |
|
8 | 5 | resolvers += Resolver.mavenLocal // for testing
|
9 | 6 | resolvers += "DataStax Repo" at "https://repo.datastax.com/public-repos/"
|
10 | 7 |
|
11 |
| -val dseVersion = "6.8.1" |
12 |
| - |
13 | 8 | // Please make sure that following DSE version matches your DSE cluster version.
|
14 | 9 | // Exclusions are solely for running integrated testing
|
15 | 10 | // Warning Sbt 0.13.13 or greater is required due to a bug with dependency resolution
|
| 11 | +val dseVersion = "6.8.1" |
| 12 | + |
16 | 13 | libraryDependencies += "com.datastax.dse" % "dse-spark-dependencies" % dseVersion % "provided" exclude(
|
17 | 14 | "org.slf4j", "log4j-over-slf4j")
|
18 | 15 |
|
19 | 16 | // Test Dependencies
|
20 | 17 | // The 'test/resources' Directory in should match the resources directory in the `it` directory
|
21 | 18 | // for the version of the Spark Cassandra Connector in use.
|
22 |
| -val scalaTestVersion = "3.0.0" |
23 | 19 | val connectorVersion = "2.0.10"
|
24 |
| -val jUnitVersion = "4.12" |
25 | 20 | val cassandraVersion = "3.11.10"
|
26 | 21 | val guavaVersion = "18.0" // required for EmbeddedCassandra based on Cassandra 3.11.x
|
| 22 | +val scalaTestVersion = "3.0.0" |
| 23 | +val jUnitVersion = "4.12" |
27 | 24 |
|
28 | 25 | libraryDependencies ++= Seq(
|
29 |
| - "com.datastax.spark" %% "spark-cassandra-connector-embedded" % connectorVersion % "test" exclude( |
30 |
| - "com.datastax.cassandra", "*"), |
| 26 | + "com.datastax.spark" %% "spark-cassandra-connector-embedded" % connectorVersion % "test" |
| 27 | + exclude("com.datastax.cassandra", "*"), |
31 | 28 | "org.apache.cassandra" % "cassandra-all" % cassandraVersion % "test",
|
32 | 29 | "org.scalatest" %% "scalatest" % scalaTestVersion % "test",
|
33 |
| - "junit" % "junit" % "4.12" % "test", |
34 |
| - "com.google.guava" % "guava" % guavaVersion % "test" |
| 30 | + "junit" % "junit" % jUnitVersion % "test" |
35 | 31 | ).map(_.excludeAll(
|
36 | 32 | ExclusionRule("org.slf4j","log4j-over-slf4j"),
|
37 | 33 | ExclusionRule("org.slf4j","slf4j-log4j12"))
|
38 | 34 | ) // Excluded to allow for Cassandra to run embedded
|
39 | 35 |
|
40 |
| -//Forking is required for the Embedded Cassandra |
| 36 | +// Need to enforce certain guava version to run embedded cassandra in test |
| 37 | +dependencyOverrides += "com.google.guava" % "guava" % guavaVersion % "test" |
| 38 | + |
| 39 | +// Forking is required for the Embedded Cassandra |
41 | 40 | javaOptions in Test += s"-Dtest.cassandra.version=$cassandraVersion"
|
42 | 41 | fork in Test := true
|
43 | 42 |
|
44 |
| -//Your dependencies |
45 |
| -//libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1" |
46 |
| -//libraryDependencies += "org.apache.commons" % "commons-csv" % "1.0" |
| 43 | +// Your dependencies |
| 44 | +// libraryDependencies += "org.apache.commons" % "commons-math3" % "3.6.1" |
| 45 | +// libraryDependencies += "org.apache.commons" % "commons-csv" % "1.0" |
47 | 46 |
|
48 | 47 | assemblyOption in assembly := (assemblyOption in assembly).value.copy(includeScala = false)
|
49 |
| -//assemblyShadeRules in assembly := Seq( |
50 |
| -// ShadeRule.rename("org.apache.commons.csv.**" -> "shaded.org.apache.commons.csv.@1").inAll |
51 |
| -//) |
| 48 | +// assemblyShadeRules in assembly := Seq( |
| 49 | +// ShadeRule.rename("org.apache.commons.csv.**" -> "shaded.org.apache.commons.csv.@1").inAll |
| 50 | +// ) |
0 commit comments