Skip to content

Commit

Permalink
Add a dependency on javax-annotations to java_grpc_library
Browse files Browse the repository at this point in the history
to work around grpc/grpc-java#3633.

Change-Id: I7623a3d2a26f91cd37cad3c3446c37ce6fbd0706

Closes #5017.
  • Loading branch information
cushon authored and philwo committed Apr 16, 2018
1 parent 81d999d commit 8caa745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions third_party/grpc/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
You need to load the rules in your BUILD file for use, like:
load("//third_party/grpc:build_defs.bzl", "java_grpc_library")
"""

def _path_ignoring_repository(f):
if (len(f.owner.workspace_root) == 0):
return f.short_path
Expand Down Expand Up @@ -96,6 +97,7 @@ def java_grpc_library(name, srcs, deps, enable_deprecated=None, visibility=None,
srcs = [gensource_name],
visibility = visibility,
deps = [
"@io_bazel//third_party:javax_annotations",
"@io_bazel//third_party:jsr305",
"@io_bazel//third_party/grpc:grpc-jar",
"@io_bazel//third_party:guava",
Expand Down

0 comments on commit 8caa745

Please sign in to comment.