Skip to content

Commit 40526eb

Browse files
committed
properly handles commons-beanutils to 1.11.0
tested locally with ./gradlew :opensearch-ml-algorithms:dependencyInsight --dependency commons-beanutils --configuration runtimeClasspath Signed-off-by: Brian Flores <iflorbri@amazon.com>
1 parent 8bf07f5 commit 40526eb

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

ml-algorithms/build.gradle

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,16 @@ 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.force 'org.apache.commons:commons-beanutils:2.0.0'
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+
}
103110
}
104111

105-
106112
jacocoTestReport {
107113
reports {
108114
xml.getRequired().set(true)

0 commit comments

Comments
 (0)