diff --git a/build.gradle b/build.gradle index 2953f68ce..d96ea5cee 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.6.0") job_scheduler_version = System.getProperty("job_scheduler.version", opensearch_build) + jackson_version = "2.14.1" } repositories { @@ -139,6 +140,7 @@ configurations.all { resolutionStrategy { force "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}" force "org.jetbrains.kotlin:kotlin-stdlib-common:${kotlin_version}" + force "com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${jackson_version}" force "org.mockito:mockito-core:4.6.1" force "org.yaml:snakeyaml:1.32" } @@ -183,8 +185,11 @@ dependencies { implementation group: 'com.google.guava', name: 'guava', version: '31.0.1-jre' implementation 'org.json:json:20220924' implementation group: 'com.github.wnameless.json', name: 'json-flattener', version: '0.15.1' - // jackson is coming from core now, https://github.com/opensearch-project/opensearch-plugins/issues/191 + // json-base, jackson-databind, jackson-annotations are only used by json-flattener. + // see https://github.com/opensearch-project/OpenSearch/issues/5395. 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}" compileOnly "${group}:opensearch-job-scheduler-spi:${job_scheduler_version}" testImplementation( 'org.assertj:assertj-core:3.16.1',