Skip to content

Commit 92f217f

Browse files
committed
Use jakarta.annotation-api v1.3.5 as v2.0.0 does not work
The class names have been changed from javax... to jakarta...
1 parent 6ebafd2 commit 92f217f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/en/server/getting-started.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ We recommend splitting your project into 2-3 separate modules.
6262
<version>${grpc.version}</version>
6363
</dependency>
6464
<dependency>
65-
<!-- Java 9+ compatibility -->
65+
<!-- Java 9+ compatibility - Do NOT update to 2.0.0 -->
6666
<groupId>jakarta.annotation</groupId>
6767
<artifactId>jakarta.annotation-api</artifactId>
68-
<version>2.0.0</version>
68+
<version>1.3.5</version>
69+
<optional>true</optional>
6970
</dependency>
7071
</dependencies>
7172

@@ -124,7 +125,7 @@ repositories {
124125
dependencies {
125126
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
126127
implementation "io.grpc:grpc-stub:${grpcVersion}"
127-
implementation 'jakarta.annotation:jakarta.annotation-api:2.0.0' // Java 9+ compatibility
128+
compileOnly 'jakarta.annotation:jakarta.annotation-api:1.3.5' // Java 9+ compatibility - Do NOT update to 2.0.0 (Compile only)
128129
}
129130
130131
protobuf {

0 commit comments

Comments
 (0)