File tree Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Expand file tree Collapse file tree 3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,22 @@ def dseVersion = "5.0.4"
33
33
def scalaVersion = " 2.10"
34
34
def scalaTestVersion = " 3.0.0"
35
35
def connectorVersion = " 1.6.0"
36
+ def cassandraVersion = " 3.0.2"
36
37
def jUnitVersion = " 4.12"
37
38
38
39
// Please make sure that following DSE version matches your DSE cluster version.
39
40
dependencies {
40
- provided " com.datastax.dse:dse-spark-dependencies:$dseVersion " exclude group : ' org.slf4j' , module : ' slf4j-log4j12'
41
+ provided(" com.datastax.dse:dse-spark-dependencies:$dseVersion " ) {
42
+ exclude group : ' org.slf4j' , module : ' slf4j-log4j12'
43
+ exclude group : ' org.apache.cassandra'
44
+ }
41
45
// assembly "org.apache.commons:commons-math3:3.6.1"
42
46
// assembly "org.apache.commons:commons-csv:1.0"
43
47
44
- // Test Dependencies
48
+ // Test Dependencies
45
49
testCompile " com.datastax.spark:spark-cassandra-connector-embedded_$scalaVersion :$connectorVersion "
46
50
testCompile " org.scalatest:scalatest_$scalaVersion :$scalaTestVersion "
51
+ testCompile " org.apache.cassandra:cassandra-all:$cassandraVersion "
47
52
testCompile " junit:junit:$jUnitVersion "
48
53
}
49
54
Original file line number Diff line number Diff line change 14
14
<scala .main.version>2.10</scala .main.version>
15
15
<scalatest .version>3.0.0</scalatest .version>
16
16
<connector .version>1.6.0</connector .version>
17
+ <cassandra .version>3.0.2</cassandra .version>
17
18
<junit .version>4.12</junit .version>
18
19
</properties >
19
20
32
33
<groupId >javax.servlet</groupId >
33
34
<artifactId >*</artifactId >
34
35
</exclusion >
36
+ <exclusion >
37
+ <groupId >org.apache.cassandra</groupId >
38
+ <artifactId >*</artifactId >
39
+ </exclusion >
35
40
</exclusions >
36
41
</dependency >
37
42
<!-- Your dependencies, 'provided' are not included in jar -->
65
70
<version >${junit.version} </version >
66
71
<scope >test</scope >
67
72
</dependency >
73
+ <dependency >
74
+ <groupId >org.apache.cassandra</groupId >
75
+ <artifactId >cassandra-all</artifactId >
76
+ <version >${cassandra.version} </version >
77
+ <scope >test</scope >
78
+ </dependency >
68
79
</dependencies >
69
80
70
81
<repositories >
Original file line number Diff line number Diff line change @@ -16,19 +16,22 @@ libraryDependencies += (
16
16
" com.datastax.dse" % " dse-spark-dependencies" % dseVersion % " provided" excludeAll (
17
17
ExclusionRule (" org.slf4j" ," slf4j-log4j12" ),
18
18
ExclusionRule (" org.mortbay.jetty" ),
19
- ExclusionRule (" javax.servlet" )
19
+ ExclusionRule (" javax.servlet" ),
20
+ ExclusionRule (" org.apache.cassandra" )
20
21
)
21
22
)
22
23
23
24
// Test Dependencies
24
- // The 'test/resources' Directory in should match the resources directory in the `it` directory
25
- // for the version of the Spark Cassandra Connector in use.
25
+ // The 'test/resources' Directory in should match the resources directory in the `it` directory
26
+ // for the version of the Spark Cassandra Connector in use.
26
27
val scalaTestVersion = " 3.0.0"
27
28
val connectorVersion = " 1.6.0"
28
29
val jUnitVersion = " 4.12"
30
+ val cassandraVersion = " 3.0.2"
29
31
30
32
libraryDependencies ++= Seq (
31
33
" com.datastax.spark" %% " spark-cassandra-connector-embedded" % connectorVersion % " test" ,
34
+ " org.apache.cassandra" % " cassandra-all" % cassandraVersion % " test" ,
32
35
" org.scalatest" %% " scalatest" % scalaTestVersion % " test" ,
33
36
" junit" % " junit" % " 4.12"
34
37
You can’t perform that action at this time.
0 commit comments