From f9fbfa6780148dbcb9a572b7a7f3b99d07ff073c Mon Sep 17 00:00:00 2001 From: Yaliang Wu Date: Mon, 6 Nov 2023 02:01:49 -0800 Subject: [PATCH] test2 Signed-off-by: Yaliang Wu --- common/build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/build.gradle b/common/build.gradle index 8cc9a4bd8f..a2426f101a 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -13,6 +13,10 @@ plugins { id 'signing' } +configurations { + guavaCompileOnly +} + dependencies { compileOnly group: 'org.opensearch', name: 'opensearch', version: "${opensearch_version}" compileOnly group: 'org.reflections', name: 'reflections', version: '0.9.12' @@ -25,7 +29,7 @@ dependencies { compileOnly group: 'com.google.code.gson', name: 'gson', version: '2.10.1' compileOnly group: 'org.json', name: 'json', version: '20230227' - implementation('com.google.guava:guava:32.1.2-jre') { + guavaCompileOnly('com.google.guava:guava:32.1.2-jre') { exclude group: 'com.google.guava', module: 'failureaccess' exclude group: 'com.google.code.findbugs', module: 'jsr305' exclude group: 'org.checkerframework', module: 'checker-qual' @@ -62,6 +66,7 @@ check.dependsOn jacocoTestCoverageVerification shadowJar { archiveClassifier.set(null) + configurations = [project.configurations.guavaCompileOnly] exclude 'META-INF/maven/com.google.guava/**' exclude 'com/google/thirdparty/**' relocate 'com.google.common', 'org.opensearch.ml.repackage.com.google.common' // dependency of cron-utils