Skip to content

Commit 71304b6

Browse files
committed
Add javax.annotations to Bazel's third_party
This library provides the @generated annotation, which is not available by default in JDK 9 (see http://openjdk.java.net/jeps/320). This will be used to work around grpc/grpc-java#3633. Change-Id: I7d6d9a6d6c44fe23818e093c6ecc97f557dd5a3e
1 parent cccd718 commit 71304b6

File tree

4 files changed

+769
-0
lines changed

4 files changed

+769
-0
lines changed

third_party/BUILD

+9
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,15 @@ filegroup(
421421
srcs = ["guava/guava-24.1-jre.jar"],
422422
)
423423

424+
# javax.annotation.Generated is not included in the default root modules in 9,
425+
# see: http://openjdk.java.net/jeps/320.
426+
java_import(
427+
name = "javax_annotations",
428+
jars = ["javax_annotations/javax.annotation-api-1.3.2.jar"],
429+
neverlink = 1, # @Generated is source-retention
430+
srcjar = "javax_annotations/javax.annotation-api-1.3.2-sources.jar",
431+
)
432+
424433
java_import(
425434
name = "jgit",
426435
jars = ["jgit/org.eclipse.jgit-4.10.0.201712302008-r.jar"],

0 commit comments

Comments
 (0)