Skip to content

Commit 7ea3966

Browse files
authored
Signed-off-by: David Zane <[email protected]>
1 parent dbb66f0 commit 7ea3966

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

build.gradle

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import java.nio.file.Paths
66
import java.util.concurrent.Callable
77
import java.util.stream.Collectors
88

9+
910
buildscript {
1011
ext {
1112
opensearch_version = System.getProperty("opensearch.version", "2.19.3-SNAPSHOT")
@@ -41,6 +42,32 @@ plugins {
4142
id 'checkstyle'
4243
}
4344

45+
configurations.all {
46+
resolutionStrategy {
47+
eachDependency { DependencyResolveDetails details ->
48+
if (details.requested.group == 'org.apache.httpcomponents.client5' &&
49+
details.requested.name == 'httpclient5') {
50+
details.useVersion '5.4.4'
51+
}
52+
if (details.requested.group == 'org.apache.httpcomponents.core5' &&
53+
details.requested.name == 'httpcore5-h2') {
54+
details.useVersion '5.3.4'
55+
}
56+
if (details.requested.group == 'org.apache.httpcomponents.core5' &&
57+
details.requested.name == 'httpcore5') {
58+
details.useVersion '5.3.4'
59+
}
60+
if (details.requested.group == 'commons-beanutils') {
61+
details.useVersion '1.11.0'
62+
}
63+
if (details.requested.group == 'org.apache.commons' &&
64+
details.requested.name == 'commons-beanutils2') {
65+
details.useVersion '2.0.0-M2'
66+
}
67+
}
68+
}
69+
}
70+
4471
apply plugin: 'java'
4572
apply plugin: 'idea'
4673
apply plugin: 'eclipse'

0 commit comments

Comments
 (0)