Skip to content

Commit 836e0d8

Browse files
Update build.gradle
1 parent 2cd9c9b commit 836e0d8

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

buildSrc/build.gradle

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ dependencies {
1111
implementation 'de.undercouch:gradle-download-task:5.0.2'
1212
implementation 'com.github.ben-manes:gradle-versions-plugin:0.42.0'
1313
}
14+
15+
configurations.all {
16+
resolutionStrategy {
17+
// openapi-generator 6.6.0 ships jackson-databind 2.14.0 which is missing NativeImageUtil.isInNativeImage(),
18+
// required by owasp-dependencycheck 12.2.2+ via parent classloader delegation.
19+
// Pin jackson-dataformat-yaml and snakeyaml explicitly to prevent collateral upgrades.
20+
force 'com.fasterxml.jackson.core:jackson-databind:2.18.2'
21+
force 'com.fasterxml.jackson.core:jackson-core:2.18.2'
22+
force 'com.fasterxml.jackson.core:jackson-annotations:2.18.2'
23+
force 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.0'
24+
force 'org.yaml:snakeyaml:1.33'
25+
}
26+
}

0 commit comments

Comments
 (0)