Skip to content

Commit 90f3f3d

Browse files
authored
fix version mismatch with opensearch core (opensearch-project#2800)
Signed-off-by: Hailong Cui <ihailong@amazon.com>
1 parent a436a94 commit 90f3f3d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

build.gradle

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.opensearch.gradle.VersionProperties
2+
13
/*
24
* Copyright OpenSearch Contributors
35
* SPDX-License-Identifier: Apache-2.0
@@ -79,6 +81,9 @@ allprojects {
7981
plugins.withId('jacoco') {
8082
jacoco.toolVersion = '0.8.10'
8183
}
84+
85+
project.getExtensions().getExtraProperties().set("versions", VersionProperties.getVersions());
86+
8287
}
8388

8489
subprojects {

memory/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ plugins {
2626
dependencies {
2727
implementation project(path: ":${rootProject.name}-common", configuration: 'shadow')
2828
implementation group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}"
29-
implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: '5.2.2'
29+
implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: "${versions.httpcore5}"
3030
implementation "org.opensearch:common-utils:${common_utils_version}"
3131
implementation group: 'com.google.guava', name: 'guava', version: '32.1.2-jre'
3232
testImplementation (group: 'junit', name: 'junit', version: '4.13.2') {

search-processors/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies {
3535
implementation project(':opensearch-ml-memory')
3636
implementation group: 'org.opensearch', name: 'common-utils', version: "${common_utils_version}"
3737
// https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5
38-
implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: '5.2.2'
38+
implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: "${versions.httpcore5}"
3939
implementation group: 'com.google.guava', name: 'guava', version: '32.1.2-jre'
4040
implementation group: 'org.json', name: 'json', version: '20231013'
4141
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'

0 commit comments

Comments
 (0)