Skip to content

Commit 47b2bf7

Browse files
cushonphilwo
authored andcommitted
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 c7e7232 commit 47b2bf7

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
@@ -422,6 +422,15 @@ filegroup(
422422
srcs = ["guava/guava-24.1-jre.jar"],
423423
)
424424

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

0 commit comments

Comments
 (0)