diff --git a/build.gradle b/build.gradle index af141c99d5..8113800c82 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,5 @@ +import org.opensearch.gradle.VersionProperties + /* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 @@ -63,6 +65,9 @@ allprojects { plugins.withId('java') { sourceCompatibility = targetCompatibility = JavaVersion.VERSION_11 } + + project.getExtensions().getExtraProperties().set("versions", VersionProperties.getVersions()); + } subprojects { diff --git a/memory/build.gradle b/memory/build.gradle index 75fe9fc141..5421b11b3c 100644 --- a/memory/build.gradle +++ b/memory/build.gradle @@ -26,7 +26,7 @@ plugins { dependencies { implementation project(path: ":${rootProject.name}-common", configuration: 'shadow') implementation group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}" - implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: '5.2.2' + implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: "${versions.httpcore5}" implementation "org.opensearch:common-utils:${common_utils_version}" implementation group: 'com.google.guava', name: 'guava', version: '32.1.2-jre' testImplementation (group: 'junit', name: 'junit', version: '4.13.2') { diff --git a/search-processors/build.gradle b/search-processors/build.gradle index cbb7e045bc..e24ce3ce9f 100644 --- a/search-processors/build.gradle +++ b/search-processors/build.gradle @@ -35,7 +35,7 @@ dependencies { implementation project(':opensearch-ml-memory') implementation group: 'org.opensearch', name: 'common-utils', version: "${common_utils_version}" // https://mvnrepository.com/artifact/org.apache.httpcomponents.core5/httpcore5 - implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: '5.2.2' + implementation group: 'org.apache.httpcomponents.core5', name: 'httpcore5', version: "${versions.httpcore5}" implementation group: 'com.google.guava', name: 'guava', version: '32.1.2-jre' implementation group: 'org.json', name: 'json', version: '20231013' implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0'