Skip to content

Commit 896ba8c

Browse files
committed
Force Spring Framework to v6 in tests.
This also forces the use of Java 17 for tests.
1 parent 8214ed4 commit 896ba8c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

build.gradle

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ plugins {
1414
// id "com.github.davidmc24.gradle.plugin.avro" version "1.6.0"
1515
}
1616

17+
// With the upgrade to Spring Framework v6, we need to use Java 17 or later.
1718
java {
18-
sourceCompatibility = 1.8
19-
targetCompatibility = 1.8
19+
sourceCompatibility = 17
20+
targetCompatibility = 17
2021
}
2122

2223
repositories {
@@ -32,12 +33,22 @@ configurations {
3233
// Force v4.5.0 of commons-collections4 to avoid CVEs in v4.4.0 from transitive dependecies:
3334
// CVE-2025-48924 (https://www.cve.org/CVERecord?id=CVE-2025-48924) and
3435
// CVE-2020-15250 (https://www.cve.org/CVERecord?id=CVE-2020-15250)
35-
force "org.apache.commons:commons-collections4:4.5.0"
36+
force 'org.apache.commons:commons-collections4:4.5.0'
3637

3738
// Force v3.18 of commons-lang3 to avoid CVE-2025-48924
3839
// (https://www.cve.org/CVERecord?id=CVE-2025-48924), without also
3940
// upgrading ml-app-deployer to 6.0.0, which we are not ready to do yet.
4041
force 'org.apache.commons:commons-lang3:3.18.0'
42+
43+
// Force Spring Framework v6 to avaoid CVEs in v5.3.9 and earlier.
44+
// These dependencies are used by marklogic-junit5.
45+
force 'org.springframework:spring-aop:6.2.9'
46+
force 'org.springframework:spring-beans:6.2.9'
47+
force 'org.springframework:spring-context:6.2.9'
48+
force 'org.springframework:spring-core:6.2.9'
49+
force 'org.springframework:spring-expression:6.2.9'
50+
force 'org.springframework:spring-test:6.2.9'
51+
force 'org.springframework:spring-web:6.2.9'
4152
}
4253
}
4354
}

0 commit comments

Comments
 (0)