Skip to content

Commit efc271e

Browse files
committed
MLE-24494 Bumped zookeeper to 3.9.4
This only affects the tests, as the connector doesn't include zookeeper
1 parent 82020c0 commit efc271e

File tree

2 files changed

+31
-23
lines changed

2 files changed

+31
-23
lines changed

build.gradle

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,6 @@ subprojects {
4040
}
4141
}
4242

43-
configurations.all {
44-
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
45-
// These all impact Spark and its dependencies, but not the published connector as the connector does not contain
46-
// any Spark libraries.
47-
if (details.requested.group.equals("org.apache.hadoop") and details.requested.version.equals("3.4.1")) {
48-
details.useVersion "3.4.2"
49-
details.because "Using 3.4.2 to minimize CVEs and because Flux is doing the same thing."
50-
}
51-
if (details.requested.group.equals("org.codehaus.janino")) {
52-
details.useVersion "3.1.12"
53-
details.because "Bumping from 3.1.9 (what Spark SQL 4.0.1 depends on) to 3.1.12 to minimize CVEs."
54-
}
55-
if (details.requested.group.equals("io.netty") and details.requested.version.startsWith("4.1.1")) {
56-
details.useVersion "4.1.127.Final"
57-
details.because "Bumping from 4.1.118 (what Spark SQL 4.0.1 depends on) to 4.1.127 to minimize CVEs."
58-
}
59-
}
60-
}
61-
6243
test {
6344
useJUnitPlatform()
6445
finalizedBy jacocoTestReport

marklogic-spark-connector/build.gradle

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,36 @@ plugins {
33
id 'maven-publish'
44
}
55

6+
configurations {
7+
all {
8+
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
9+
// These all impact Spark and its dependencies, but not the published connector as the connector does not contain
10+
// any Spark libraries.
11+
if (details.requested.group.equals("org.apache.hadoop") and details.requested.version.equals("3.4.1")) {
12+
details.useVersion "3.4.2"
13+
details.because "Using 3.4.2 to minimize CVEs and because Flux is doing the same thing."
14+
}
15+
if (details.requested.group.equals("org.codehaus.janino")) {
16+
details.useVersion "3.1.12"
17+
details.because "Bumping from 3.1.9 (what Spark SQL 4.0.1 depends on) to 3.1.12 to minimize CVEs."
18+
}
19+
if (details.requested.group.equals("io.netty") and details.requested.version.startsWith("4.1.1")) {
20+
details.useVersion "4.1.127.Final"
21+
details.because "Bumping from 4.1.118 (what Spark SQL 4.0.1 depends on) to 4.1.127 to minimize CVEs."
22+
}
23+
}
24+
25+
resolutionStrategy {
26+
// Addresses CVE-2025-58457; Spark depends on 3.9.3, and the CVE is fixed in 3.9.4.
27+
force "org.apache.zookeeper:zookeeper:3.9.4"
28+
}
29+
}
30+
}
31+
32+
633
dependencies {
734
// Need to compile against Spark, but its libraries are not part of the connector jar.
8-
compileOnly ("org.apache.spark:spark-sql_2.13:${sparkVersion}") {
35+
compileOnly("org.apache.spark:spark-sql_2.13:${sparkVersion}") {
936
// Excluded from Flux for size reasons, so excluded here as well to ensure we don't need it when running tests.
1037
exclude module: "rocksdbjni"
1138
}
@@ -53,7 +80,7 @@ dependencies {
5380
// Needed for some XML operations that are far easier with JDOM2 than with DOM.
5481
implementation "org.jdom:jdom2:2.0.6.1"
5582

56-
implementation ("dev.langchain4j:langchain4j:${langchain4jVersion}") {
83+
implementation("dev.langchain4j:langchain4j:${langchain4jVersion}") {
5784
exclude group: "com.fasterxml.jackson.core"
5885
}
5986

@@ -67,12 +94,12 @@ dependencies {
6794
// org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
6895
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.13.4"
6996

70-
testImplementation ("org.apache.spark:spark-sql_2.13:${sparkVersion}") {
97+
testImplementation("org.apache.spark:spark-sql_2.13:${sparkVersion}") {
7198
exclude module: "rocksdbjni"
7299
}
73100

74101
// Supports testing the embedder feature.
75-
testImplementation ("dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:1.5.0-beta11") {
102+
testImplementation("dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:1.5.0-beta11") {
76103
exclude group: "com.fasterxml.jackson.core"
77104
}
78105

0 commit comments

Comments
 (0)