Skip to content

Commit 0eb20d7

Browse files
committed
force runtime class path commons-beanutils:commons-beanutils:1.11.0 to avoid transitive dependency
Signed-off-by: Brian Flores <iflorbri@amazon.com>
1 parent 782e97d commit 0eb20d7

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

ml-algorithms/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,6 @@ configurations.all {
9999
resolutionStrategy.force 'com.google.protobuf:protobuf-java:3.25.5'
100100
resolutionStrategy.force 'org.apache.commons:commons-compress:1.26.0'
101101
resolutionStrategy.force 'software.amazon.awssdk:bom:2.30.18'
102-
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
103-
if (details.requested.group == 'commons-beanutils') {
104-
details.useVersion '1.11.0'
105-
}
106-
if (details.requested.group == 'org.apache.commons' && details.requested.name == 'commons-beanutils2') {
107-
details.useVersion '2.0.0-M2'
108-
}
109-
}
110102
}
111103

112104
jacocoTestReport {

plugin/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,3 +671,12 @@ forbiddenPatterns {
671671
exclude '**/*.pdf'
672672
exclude '**/*.jpg'
673673
}
674+
675+
configurations {
676+
runtimeClasspath {
677+
resolutionStrategy {
678+
// CVE-48734: tribuo-clustering-kmeans:'4.2.1 causes a transitive dependency on beanutils:1.94
679+
force 'commons-beanutils:commons-beanutils:1.11.0'
680+
}
681+
}
682+
}

0 commit comments

Comments
 (0)