Skip to content

Commit e20f324

Browse files
pboosclaude
andcommitted
CHK-13321: only override jackson-core when resolved version < 3.1.1
Avoids pinning to 3.1.1 if a newer version is requested through other dependencies (e.g. future Spring Boot upgrade). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0ecfcb9 commit e20f324

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ allprojects {
2525
subprojects {
2626
configurations.configureEach {
2727
resolutionStrategy.eachDependency {
28-
if (requested.group == 'tools.jackson.core' && requested.name == 'jackson-core') {
28+
if (requested.group == 'tools.jackson.core' && requested.name == 'jackson-core'
29+
&& requested.version != null && requested.version < '3.1.1') {
2930
useVersion('3.1.1')
3031
because('GHSA-2m67-wjpj-xhg9: Jackson Core 3.0.0-3.1.0 maxDocumentLength bypass')
3132
}

0 commit comments

Comments
 (0)