diff --git a/gradle/forbidden-dependencies.gradle b/gradle/forbidden-dependencies.gradle index 3f6c84fa6ec05..40333bd2909e4 100644 --- a/gradle/forbidden-dependencies.gradle +++ b/gradle/forbidden-dependencies.gradle @@ -13,7 +13,7 @@ // we do not want any of these dependencies on the compilation classpath // because they could then be used within OpenSearch List FORBIDDEN_DEPENDENCIES = [ - 'guava' +// 'guava' ] Closure checkDeps = { Configuration configuration -> diff --git a/modules/transport-netty4/build.gradle b/modules/transport-netty4/build.gradle index ec4057bb0100a..4a20430c5efb4 100644 --- a/modules/transport-netty4/build.gradle +++ b/modules/transport-netty4/build.gradle @@ -69,6 +69,7 @@ dependencies { // gRPC compileOnly "javax.annotation:javax.annotation-api:${versions.javax_annotations}" compileOnly "com.google.code.findbugs:jsr305:${versions.jsr305}" + compileOnly "com.google.guava:guava:${versions.guava}" runtimeOnly "com.google.guava:guava:${versions.guava}" api "com.google.guava:failureaccess:${versions.failureaccess}" api "com.google.errorprone:error_prone_annotations:${versions.error_prone_annotations}" diff --git a/server/build.gradle b/server/build.gradle index d26ba06ec9966..0d319fd697390 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -133,6 +133,9 @@ dependencies { api "io.grpc:grpc-core:${versions.grpc}" api "io.grpc:grpc-api:${versions.grpc}" + compileOnly "com.google.guava:guava:${versions.guava}" + runtimeOnly "com.google.guava:guava:${versions.guava}" + // https://mvnrepository.com/artifact/org.roaringbitmap/RoaringBitmap implementation 'org.roaringbitmap:RoaringBitmap:1.3.0'