Skip to content

Commit 43f46b1

Browse files
authored
MCP-440 Update dependencies resolution (#361)
1 parent b2f7ad3 commit 43f46b1

3 files changed

Lines changed: 35 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,30 @@ configurations {
6666
extendsFrom(sqplugins)
6767
isTransitive = true
6868
}
69+
all {
70+
resolutionStrategy.eachDependency {
71+
// Pulled in by xodus-entity-store:2.0.1
72+
if (requested.group == "org.jetbrains.kotlin" && requested.name in listOf("kotlin-stdlib", "kotlin-stdlib-common")) {
73+
useVersion("2.2.0")
74+
because("CVE-2020-29582")
75+
}
76+
// Pulled in transitively by mcp-json-jackson2 and sonarlint-rpc-impl
77+
if (requested.group == "com.fasterxml.jackson.core" && requested.name != "jackson-annotations") {
78+
useVersion("2.21.1")
79+
because("GHSA-72hv-8253-57qq")
80+
}
81+
// Pulled in by mcp-json-jackson3
82+
if (requested.group == "tools.jackson.core") {
83+
useVersion("3.1.2")
84+
because("CVE-2026-29062 + GHSA-72hv-8253-57qq")
85+
}
86+
// Pulled in transitively by sonarlint-core
87+
if (requested.group == "org.apache.commons" && requested.name == "commons-compress") {
88+
useVersion("1.28.0")
89+
because("CVE-2024-25710 + CVE-2024-26308")
90+
}
91+
}
92+
}
6993
}
7094

7195
dependencies {

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cyclonedx-plugin = "2.4.1"
99

1010
sonar-php = "3.56.0.15870"
1111

12-
mcp-server = "1.1.1"
12+
mcp-server = "1.1.2"
1313
commons-lang3 = "3.20.0"
1414
commons-text = "1.15.0"
1515
ayza = "10.0.4"

its/build.gradle.kts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ repositories {
4040
}
4141
}
4242

43+
configurations.all {
44+
resolutionStrategy.eachDependency {
45+
// Pulled in transitively by testcontainers:1.21.x
46+
if (requested.group == "org.apache.commons" && requested.name == "commons-compress") {
47+
useVersion("1.28.0")
48+
because("CVE-2024-25710 + CVE-2024-26308")
49+
}
50+
}
51+
}
52+
4353
dependencies {
4454
testImplementation(project(":"))
4555
testImplementation(libs.testcontainers)

0 commit comments

Comments
 (0)