Skip to content

Commit 4f6948f

Browse files
Remove org.apache.tomcat:annotations-api from README (#12320)
With the default @generated=omit option used by grpc-compiler, it is no longer necessary to have the compile-only dependency on org.apache.tomcat:annotations-api.
1 parent 3d5eff9 commit 4f6948f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,13 @@ Download [the JARs][]. Or for Maven with non-Android, add to your `pom.xml`:
6969
<artifactId>grpc-stub</artifactId>
7070
<version>1.75.0</version>
7171
</dependency>
72-
<dependency> <!-- necessary for Java 9+ -->
73-
<groupId>org.apache.tomcat</groupId>
74-
<artifactId>annotations-api</artifactId>
75-
<version>6.0.53</version>
76-
<scope>provided</scope>
77-
</dependency>
7872
```
7973

8074
Or for Gradle with non-Android, add to your dependencies:
8175
```gradle
8276
runtimeOnly 'io.grpc:grpc-netty-shaded:1.75.0'
8377
implementation 'io.grpc:grpc-protobuf:1.75.0'
8478
implementation 'io.grpc:grpc-stub:1.75.0'
85-
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
8679
```
8780

8881
For Android client, use `grpc-okhttp` instead of `grpc-netty-shaded` and
@@ -91,7 +84,6 @@ For Android client, use `grpc-okhttp` instead of `grpc-netty-shaded` and
9184
implementation 'io.grpc:grpc-okhttp:1.75.0'
9285
implementation 'io.grpc:grpc-protobuf-lite:1.75.0'
9386
implementation 'io.grpc:grpc-stub:1.75.0'
94-
compileOnly 'org.apache.tomcat:annotations-api:6.0.53' // necessary for Java 9+
9587
```
9688

9789
For [Bazel](https://bazel.build), you can either

0 commit comments

Comments
 (0)