From 851f7af60a8de4b9f3a805b99adc942872d86965 Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Wed, 30 Nov 2022 00:30:39 +0000 Subject: [PATCH] force protobuf-java version as 3.21.9 (#587) Signed-off-by: Yaliang Wu Signed-off-by: Yaliang Wu --- ml-algorithms/build.gradle | 4 ++++ plugin/build.gradle | 1 + 2 files changed, 5 insertions(+) diff --git a/ml-algorithms/build.gradle b/ml-algorithms/build.gradle index 68f89641c7..ec14de30e9 100644 --- a/ml-algorithms/build.gradle +++ b/ml-algorithms/build.gradle @@ -33,6 +33,10 @@ dependencies { implementation group: 'org.apache.commons', name: 'commons-text', version: '1.10.0' } +configurations.all { + resolutionStrategy.force 'com.google.protobuf:protobuf-java:3.21.9' +} + jacocoTestReport { reports { xml.enabled false diff --git a/plugin/build.gradle b/plugin/build.gradle index e9b3a7ba11..ef9da2e10c 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -255,6 +255,7 @@ configurations.all { resolutionStrategy.force 'org.apache.commons:commons-lang3:3.10' resolutionStrategy.force 'commons-logging:commons-logging:1.2' resolutionStrategy.force 'org.apache.commons:commons-text:1.10.0' + resolutionStrategy.force 'com.google.protobuf:protobuf-java:3.21.9' // 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' }