Skip to content

Commit 3c57672

Browse files
committed
MLE-24717 Bumping to Spark 4.1.0-preview3
And bumped a few others too, including langchain4j
1 parent ae0d18a commit 3c57672

File tree

6 files changed

+24
-28
lines changed

6 files changed

+24
-28
lines changed

build.gradle

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ subprojects {
4646
}
4747
}
4848

49-
configurations.configureEach {
50-
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
51-
// Defining this rule for io.netty here so that it affects both flux-cli and flux-embedding-model-azure-open-ai.
52-
if (details.requested.group.equals("io.netty") and details.requested.version.startsWith("4.1.1")) {
53-
details.useVersion "4.1.128.Final"
54-
details.because "Bumping from 4.1.127 (what Spark SQL 4.1.0-preview2 depends on) to eliminate CVEs."
55-
}
56-
}
57-
}
49+
configurations.configureEach {
50+
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
51+
// Defining this rule for io.netty here so that it affects both flux-cli and flux-embedding-model-azure-open-ai.
52+
if (details.requested.group.equals("io.netty") and details.requested.version.startsWith("4.1.")) {
53+
details.useVersion "4.2.7.Final"
54+
details.because "Spark 4.1.0-preview3 depends on 4.2.7.Final, and we need azure-open-ai to do as well to avoid conflicts."
55+
}
56+
}
57+
}
5858

5959
test {
6060
useJUnitPlatform()

flux-cli/build.gradle

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,9 @@ dependencies {
2626
implementation("org.eclipse.jetty:jetty-util-ajax:9.4.58.v20250814") {
2727
because "Bumping to latest 9.x to eliminate CVEs; this is brought in by hadoop-azure."
2828
}
29-
implementation("org.apache.zookeeper:zookeeper:3.9.4") {
30-
because "Addresses CVE-2025-58457; Spark depends on 3.9.3, and the CVE is fixed in 3.9.4."
31-
}
32-
// Not yet defining constraints for io.netty, as doing so would require several separate modules to be defined
33-
// here. The hope is that the 4.1.0 final release will use the latest patch version of io.netty and thus no
34-
// constraints or top-level resolution strategies will be needed.
3529
}
3630

37-
implementation ("org.apache.spark:spark-sql_2.13:${sparkVersion}") {
31+
implementation("org.apache.spark:spark-sql_2.13:${sparkVersion}") {
3832
// The rocksdbjni dependency weighs in at 50mb and so far does not appear necessary for our use of Spark.
3933
exclude module: "rocksdbjni"
4034
}
@@ -68,7 +62,7 @@ dependencies {
6862
// For Blob Storage
6963
implementation "com.microsoft.azure:azure-storage:8.6.6"
7064
// For Data Lake Storage Gen2
71-
implementation ("com.azure:azure-storage-file-datalake:12.23.1") {
65+
implementation("com.azure:azure-storage-file-datalake:12.25.0") {
7266
// Exclude the Jackson dependencies that Spark already provides, and we need the version required by Spark.
7367
// This exclusion can be tested by publishing flux-api locally and running the test programs in
7468
// examples/client-project.
@@ -88,7 +82,7 @@ dependencies {
8882
}
8983

9084
// For configuring two-way SSL in tests.
91-
testImplementation ("com.marklogic:ml-app-deployer:6.2-SNAPSHOT") {
85+
testImplementation("com.marklogic:ml-app-deployer:6.2-SNAPSHOT") {
9286
// Prefer Spark's versions of Jackson.
9387
exclude group: "com.fasterxml.jackson.core"
9488
exclude group: "com.fasterxml.jackson.dataformat"
@@ -107,7 +101,7 @@ dependencies {
107101
testImplementation "org.postgresql:postgresql:42.7.8"
108102

109103
// Required for compile-time references in the tests to langchain4j classes.
110-
testImplementation ("dev.langchain4j:langchain4j:${langchain4jVersion}") {
104+
testImplementation("dev.langchain4j:langchain4j:${langchain4jVersion}") {
111105
// Prefer Spark's versions of Jackson.
112106
exclude group: "com.fasterxml.jackson.core"
113107
}
@@ -120,10 +114,10 @@ dependencies {
120114
testImplementation project(path: ":flux-embedding-model-ollama", configuration: "shadow")
121115

122116
// For deep equals on JSON with diff.
123-
testImplementation "net.javacrumbs.json-unit:json-unit-assertj:4.1.1"
117+
testImplementation "net.javacrumbs.json-unit:json-unit-assertj:5.0.0"
124118

125119
// For deep equals on XML with diff.
126-
testImplementation "org.xmlunit:xmlunit-core:2.10.4"
120+
testImplementation "org.xmlunit:xmlunit-core:2.11.0"
127121
}
128122

129123
javadoc {

flux-embedding-model-azure-open-ai/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ dependencies {
1919
// Repeating this here so that the Jackson dependencies are included for running tests in this subproject.
2020
testImplementation "dev.langchain4j:langchain4j-azure-open-ai:${langchain4jVersion}"
2121

22-
testImplementation "org.junit.jupiter:junit-jupiter:5.11.2"
23-
testImplementation "ch.qos.logback:logback-classic:1.5.19"
22+
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.14.0"
23+
testImplementation "org.junit.jupiter:junit-jupiter:5.14.0"
24+
testImplementation "ch.qos.logback:logback-classic:1.5.20"
2425
}
2526

2627
shadowJar {

flux-embedding-model-minilm/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ java {
99
}
1010

1111
dependencies {
12-
implementation ("dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:1.5.0-beta11") {
12+
implementation ("dev.langchain4j:langchain4j-embeddings-all-minilm-l6-v2:1.8.0-beta15") {
1313
// Ensures that the version of Jackson preferred by Spark is used instead. Otherwise, this library's pom
1414
// will bring in a later version of Jackson that causes Spark to fail.
1515
exclude group: "com.fasterxml.jackson.core"

flux-embedding-model-ollama/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ dependencies {
1818
// Repeating this here so that the Jackson dependencies are included for running tests in this subproject.
1919
testImplementation "dev.langchain4j:langchain4j-ollama:${langchain4jVersion}"
2020

21-
testImplementation "org.junit.jupiter:junit-jupiter:5.11.2"
22-
testImplementation "ch.qos.logback:logback-classic:1.5.19"
21+
testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.14.0"
22+
testImplementation "org.junit.jupiter:junit-jupiter:5.14.0"
23+
testImplementation "ch.qos.logback:logback-classic:1.5.20"
2324
}
2425

2526
shadowJar {

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ connectorVersion=3.0-SNAPSHOT
66
picocliVersion=4.7.7
77

88
# Aligned with our Spark connector.
9-
sparkVersion=4.1.0-preview2
9+
sparkVersion=4.1.0-preview3
1010
hadoopVersion=3.4.2
1111

12-
langchain4jVersion=1.5.0
12+
langchain4jVersion=1.8.0
1313
tikaVersion=3.2.3
1414

1515
# Define these on the command line to publish to OSSRH

0 commit comments

Comments
 (0)