From 20d1c8654d7bd3e16e0791a99796d301c1f32953 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 20 Feb 2023 12:17:00 -0800 Subject: [PATCH] [Backport 2.x] Add jackson-databind and jackson-annotations (#652) * Add jackson-databind and jackson-annotations (#650) Signed-off-by: Rupal Mahajan (cherry picked from commit cc34ae81a730b954062c61d643c3587c63ebbfd0) * Resolve mockito-core conflict Signed-off-by: Rupal Mahajan --------- Signed-off-by: Rupal Mahajan Co-authored-by: Rupal Mahajan --- build.gradle | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 91242606..185dca26 100644 --- a/build.gradle +++ b/build.gradle @@ -27,6 +27,7 @@ buildscript { common_utils_version = System.getProperty("common_utils.version", opensearch_build) job_scheduler_version = System.getProperty("job_scheduler.version", opensearch_build) kotlin_version = System.getProperty("kotlin.version", "1.6.0") + jackson_version = "2.14.1" } repositories { @@ -89,7 +90,7 @@ publishing { developers { developer { name = 'OpenSearch' - url = 'https://github.com/opensearch-project/dashboards-reports' + url = 'https://github.com/opensearch-project/reporting' } } } @@ -165,8 +166,10 @@ dependencies { implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre' implementation "org.json:json:20180813" implementation group: 'com.github.wnameless.json', name: 'json-flattener', version: '0.15.1' - // json-base is transitive dependencies by json-flattener + // json-base, jackson-databind, jackson-annotations are transitive dependencies by json-flattener implementation group: 'com.github.wnameless.json', name: 'json-base', version: '2.2.1' + implementation "com.fasterxml.jackson.core:jackson-databind:${jackson_version}" + implementation "com.fasterxml.jackson.core:jackson-annotations:${jackson_version}" implementation 'org.jsoup:jsoup:1.15.3' implementation 'com.google.code.gson:gson:2.8.9' implementation "org.jetbrains.kotlin:kotlin-test:${kotlin_version}" @@ -179,7 +182,7 @@ dependencies { testImplementation "org.opensearch.test:framework:${opensearch_version}" testImplementation "org.jetbrains.kotlin:kotlin-test:${kotlin_version}" testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0" - testImplementation "org.mockito:mockito-core:4.7.0" + testImplementation "org.mockito:mockito-core:5.1.0" testImplementation "org.mockito:mockito-junit-jupiter:4.7.0" testImplementation 'com.google.code.gson:gson:2.8.9'