Skip to content

Commit bd151bc

Browse files
committed
Introduce javax.annotation-api dependency as a workaround for build with JDK 11
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
1 parent 5d16e02 commit bd151bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
<protobuf.version>3.10.0</protobuf.version>
4949
<grpc.version>1.42.1</grpc.version>
5050
<slf4j.version>1.7.36</slf4j.version>
51+
<javax.annotation-api.version>1.3.2</javax.annotation-api.version>
5152

5253
<!-- Test libs -->
5354
<junit.version>4.12</junit.version>
@@ -94,6 +95,14 @@
9495
<version>${slf4j.version}</version>
9596
</dependency>
9697

98+
99+
<!-- workaround for compile in JDK 11 -->
100+
<dependency>
101+
<groupId>javax.annotation</groupId>
102+
<artifactId>javax.annotation-api</artifactId>
103+
<version>${javax.annotation-api.version}</version>
104+
</dependency>
105+
97106
<!-- test-scope dependencies -->
98107
<dependency>
99108
<groupId>junit</groupId>

0 commit comments

Comments
 (0)