From 0f94d5629079fc9c5f9785ba01fbc1fb5ddb09f9 Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Tue, 9 Jan 2024 15:22:11 +0800 Subject: [PATCH] Add kotlin stblib dependency for SearchAlertTool Signed-off-by: Hailong Cui --- build.gradle | 1 + ml-algorithms/build.gradle | 3 +++ plugin/build.gradle | 1 + 3 files changed, 5 insertions(+) diff --git a/build.gradle b/build.gradle index c1c69c599a..c77b11717d 100644 --- a/build.gradle +++ b/build.gradle @@ -23,6 +23,7 @@ buildscript { } common_utils_version = System.getProperty("common_utils.version", opensearch_build) + kotlin_version = System.getProperty("kotlin.version", "1.8.21") } repositories { diff --git a/ml-algorithms/build.gradle b/ml-algorithms/build.gradle index cd79560e90..f1ba838438 100644 --- a/ml-algorithms/build.gradle +++ b/ml-algorithms/build.gradle @@ -24,6 +24,9 @@ dependencies { implementation "org.opensearch.client:opensearch-rest-client:${opensearch_version}" testImplementation "org.opensearch.test:framework:${opensearch_version}" implementation "org.opensearch:common-utils:${common_utils_version}" + implementation ("org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}") { + exclude group: "org.jetbrains", module: "annotations" + } implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0' implementation group: 'org.reflections', name: 'reflections', version: '0.9.12' implementation group: 'org.tribuo', name: 'tribuo-clustering-kmeans', version: '4.2.1' diff --git a/plugin/build.gradle b/plugin/build.gradle index ba544abe24..c5e3ab26d6 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -338,6 +338,7 @@ configurations.all { resolutionStrategy.force 'org.apache.httpcomponents:httpclient:4.5.14' resolutionStrategy.force 'commons-codec:commons-codec:1.15' resolutionStrategy.force 'org.slf4j:slf4j-api:1.7.36' + resolutionStrategy.force 'org.codehaus.plexus:plexus-utils:3.3.0' } apply plugin: 'com.netflix.nebula.ospackage'