readme: grpc-netty-shaded runtime scope

We should recommend runtime scope for grpc-netty-shaded.

https://github.com/grpc/grpc-java/issues/8606#issuecomment-1004504316
This commit is contained in:
Daniel Norberg 2022-01-04 18:39:19 -05:00 committed by GitHub
parent e474e3dc7e
commit 24e345c06d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@ Download [the JARs][]. Or for Maven with non-Android, add to your `pom.xml`:
<groupId>io.grpc</groupId>
<artifactId>grpc-netty-shaded</artifactId>
<version>1.43.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
@ -65,7 +66,7 @@ Download [the JARs][]. Or for Maven with non-Android, add to your `pom.xml`:
Or for Gradle with non-Android, add to your dependencies:
```gradle
implementation 'io.grpc:grpc-netty-shaded:1.43.1'
runtimeOnly 'io.grpc:grpc-netty-shaded:1.43.1'
implementation 'io.grpc:grpc-protobuf:1.43.1'
implementation 'io.grpc:grpc-stub:1.43.1'
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+