From 0cd6883e79ef6f1fcdab376bf81ea4fdfefd7103 Mon Sep 17 00:00:00 2001 From: Alex Panchenko Date: Mon, 18 Mar 2024 13:45:50 +0200 Subject: [PATCH] compileOnly for grpc-inprocess/implementation for grpc-netty-shaded --- grpc-client-spring-boot-starter/build.gradle | 4 ++-- grpc-server-spring-boot-starter/build.gradle | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/grpc-client-spring-boot-starter/build.gradle b/grpc-client-spring-boot-starter/build.gradle index 17662d2c6..47411c9cf 100644 --- a/grpc-client-spring-boot-starter/build.gradle +++ b/grpc-client-spring-boot-starter/build.gradle @@ -26,8 +26,8 @@ dependencies { // this means it can be used implicitly without specifying the dependency (unless you wish to override with a different version, or exclude) optionalSupportApi 'io.grpc:grpc-netty' optionalSupportApi 'io.netty:netty-transport-native-epoll' - api 'io.grpc:grpc-inprocess' - api 'io.grpc:grpc-netty-shaded' + compileOnly 'io.grpc:grpc-inprocess' + implementation 'io.grpc:grpc-netty-shaded' api 'io.grpc:grpc-protobuf' api 'io.grpc:grpc-stub' diff --git a/grpc-server-spring-boot-starter/build.gradle b/grpc-server-spring-boot-starter/build.gradle index c3f39af1e..0c181a2be 100644 --- a/grpc-server-spring-boot-starter/build.gradle +++ b/grpc-server-spring-boot-starter/build.gradle @@ -24,8 +24,8 @@ dependencies { optionalSupportImplementation "com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery" optionalSupportImplementation 'io.zipkin.brave:brave-instrumentation-grpc' optionalSupportApi 'io.grpc:grpc-netty' - api 'io.grpc:grpc-inprocess' - api 'io.grpc:grpc-netty-shaded' + compileOnly 'io.grpc:grpc-inprocess' + implementation 'io.grpc:grpc-netty-shaded' api 'io.grpc:grpc-protobuf' api 'io.grpc:grpc-stub' api 'io.grpc:grpc-services'