Skip to content

Commit 5292b37

Browse files
authored
CHK-13321: Force jackson-core 3.1.1 across all Gradle configurations (#348)
1 parent 20eeeef commit 5292b37

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ allprojects {
2323
}
2424

2525
subprojects {
26+
configurations.configureEach {
27+
resolutionStrategy.eachDependency {
28+
if (requested.group == 'tools.jackson.core' && requested.name == 'jackson-core'
29+
&& requested.version != null && requested.version < '3.1.1') {
30+
useVersion('3.1.1')
31+
because('GHSA-2m67-wjpj-xhg9: Jackson Core 3.0.0-3.1.0 maxDocumentLength bypass')
32+
}
33+
}
34+
}
35+
2636
if(it.parent.name == 'examples') {
2737
apply plugin: 'java'
2838
} else {

0 commit comments

Comments
 (0)