Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
Signed-off-by: Yaliang Wu <[email protected]>
  • Loading branch information
ylwu-amzn committed Nov 6, 2023
1 parent 69cd31f commit f9fbfa6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f9fbfa6

Please sign in to comment.