@@ -21,7 +21,15 @@ repositories {
21
21
22
22
dependencies {
23
23
compileOnly ' org.apache.spark:spark-sql_2.12:' + sparkVersion
24
- implementation " com.marklogic:marklogic-client-api:6.3.0"
24
+ implementation (" com.marklogic:marklogic-client-api:6.4.0" ) {
25
+ // The Java Client uses Jackson 2.15.2; Scala 3.4.x does not yet support that and will throw the following error:
26
+ // Scala module 2.14.2 requires Jackson Databind version >= 2.14.0 and < 2.15.0 - Found jackson-databind version 2.15.2
27
+ // So the 4 Jackson modules are excluded to allow for Spark's to be used.
28
+ exclude module : ' jackson-core'
29
+ exclude module : ' jackson-databind'
30
+ exclude module : ' jackson-annotations'
31
+ exclude module : ' jackson-dataformat-csv'
32
+ }
25
33
26
34
// Makes it possible to use lambdas in Java 8 to implement Spark's Function1 and Function2 interfaces
27
35
// See https://github.com/scala/scala-java8-compat for more information
@@ -31,8 +39,18 @@ dependencies {
31
39
}
32
40
33
41
testImplementation ' org.apache.spark:spark-sql_2.12:' + sparkVersion
34
- testImplementation ' com.marklogic:ml-app-deployer:4.6.0'
35
- testImplementation ' com.marklogic:marklogic-junit5:1.4.0'
42
+ testImplementation (' com.marklogic:ml-app-deployer:4.6.0' ) {
43
+ exclude module : ' jackson-core'
44
+ exclude module : ' jackson-databind'
45
+ exclude module : ' jackson-annotations'
46
+ exclude module : ' jackson-dataformat-csv'
47
+ }
48
+ testImplementation (' com.marklogic:marklogic-junit5:1.4.0' ) {
49
+ exclude module : ' jackson-core'
50
+ exclude module : ' jackson-databind'
51
+ exclude module : ' jackson-annotations'
52
+ exclude module : ' jackson-dataformat-csv'
53
+ }
36
54
testImplementation " ch.qos.logback:logback-classic:1.3.5"
37
55
testImplementation " org.slf4j:jcl-over-slf4j:1.7.36"
38
56
testImplementation " org.skyscreamer:jsonassert:1.5.1"
0 commit comments