Skip to content

Commit 0ecfcb9

Browse files
pboosclaude
andcommitted
CHK-13321: force jackson-core 3.1.1 across all configurations
The previous fix (ext['jackson-bom.version']) only covered example projects using the spring-dependency-management plugin. The spring-boot-starter-web and spring-boot-starter-webflux modules use compileOnly for Spring Boot starters with platform(BOM_COORDINATES), so jackson-core:3.1.0 remained on their compileClasspath. Since the dependency submission action includes compileClasspath, the Dependabot alert stayed open. This adds a resolutionStrategy in the root build.gradle that forces tools.jackson.core:jackson-core to 3.1.1 across ALL configurations in ALL subprojects. Closes CHK-13321 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 20eeeef commit 0ecfcb9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

build.gradle

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

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

0 commit comments

Comments
 (0)