Skip to content

Commit ae6436a

Browse files
authored
moved the pinning to the core gradle file where the commons-validator dependency is present (#1892)
Signed-off-by: Amardeepsingh Siglani <[email protected]>
1 parent b3ccf87 commit ae6436a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

alerting/build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ configurations.all {
105105
force "commons-logging:commons-logging:${versions.commonslogging}"
106106
// force the version until OpenSearch upgrade to an invulnerable one, https://www.whitesourcesoftware.com/vulnerability-database/WS-2019-0379
107107
force "commons-codec:commons-codec:1.13"
108-
// force commons-beanutils to a non-vulnerable version
109-
force "commons-beanutils:commons-beanutils:1.11.0"
110108

111109
force "org.slf4j:slf4j-api:${versions.slf4j}" //Needed for http5
112110

core/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ apply plugin: 'opensearch.java-rest-test'
88
apply plugin: 'org.jetbrains.kotlin.jvm'
99
apply plugin: 'jacoco'
1010

11+
configurations{
12+
all {
13+
resolutionStrategy {
14+
// force commons-beanutils to a non-vulnerable version
15+
force "commons-beanutils:commons-beanutils:1.11.0"
16+
}
17+
}
18+
}
19+
1120
dependencies {
1221
compileOnly "org.opensearch:opensearch:${opensearch_version}"
1322
implementation "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"

0 commit comments

Comments
 (0)