From 67b3c4dc9f14211dd446dd51b3b1a4564794abec Mon Sep 17 00:00:00 2001 From: Heemin Kim Date: Tue, 14 Mar 2023 17:13:14 -0700 Subject: [PATCH] Add reflection dependency (#136) Signed-off-by: Heemin Kim (cherry picked from commit 96ce34e572d05667187815943f47e901f68ebd5c) --- build.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle b/build.gradle index 06e3d2837..45476f48c 100644 --- a/build.gradle +++ b/build.gradle @@ -146,6 +146,12 @@ dependencies { compileOnly fileTree(dir: knnJarDirectory, include: '*.jar') api group: 'org.opensearch', name:'opensearch-ml-client', version: "${opensearch_build}" implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10' + // ml-common excluded reflection for runtime so we need to add it by ourselves. + // https://github.com/opensearch-project/ml-commons/commit/464bfe34c66d7a729a00dd457f03587ea4e504d9 + // TODO: Remove following three lines of dependencies if ml-common include them in their jar + runtimeOnly group: 'org.reflections', name: 'reflections', version: '0.9.12' + runtimeOnly group: 'org.javassist', name: 'javassist', version: '3.29.2-GA' + runtimeOnly group: 'org.opensearch', name: 'common-utils', version: "${opensearch_build}" } // In order to add the jar to the classpath, we need to unzip the