From 98ca08040096151301b3706bd6f940d5afa6bc49 Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Wed, 27 Jul 2022 16:47:31 -0700 Subject: [PATCH 1/2] fix jackson databind version: use same version as OpenSearch core Signed-off-by: Yaliang Wu --- plugin/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/build.gradle b/plugin/build.gradle index 79a4c6191c..446c980e7a 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -44,7 +44,7 @@ dependencies { compile "org.opensearch.client:opensearch-rest-client:${opensearch_version}" compile "org.opensearch:common-utils:${common_utils_version}" compile("com.fasterxml.jackson.core:jackson-annotations:${versions.jackson}") - compile("com.fasterxml.jackson.core:jackson-databind:${versions.jackson}") + compile("com.fasterxml.jackson.core:jackson-databind:${versions.jackson_databind}") implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre' implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0' From 08e4151141c149fbabd971dd7e4e2471cbaac5c7 Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Thu, 28 Jul 2022 00:11:41 +0000 Subject: [PATCH 2/2] resovle conflict Signed-off-by: Yaliang Wu --- plugin/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/build.gradle b/plugin/build.gradle index 446c980e7a..b9e0ed9e6b 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -253,6 +253,8 @@ configurations.all { resolutionStrategy.force 'junit:junit:4.12' resolutionStrategy.force 'org.apache.commons:commons-lang3:3.10' resolutionStrategy.force 'commons-logging:commons-logging:1.2' + // Resolve conflict with org.opensearch:opensearch:1.3.4-SNAPSHOT which using 2.13.2 + resolutionStrategy.force 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2' } apply plugin: 'nebula.ospackage'