Drop @grpc_java from labels

These don't contribute if grpc-java is imported with name = grpc_java,
and break the build if grpc-java is imported with another name.
This commit is contained in:
Carmi Grushko 2018-02-17 13:42:46 -05:00 committed by Eric Anderson
parent 38c84ed9ef
commit 137c74d15f
1 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ _gensource = rule(
cfg = "host", cfg = "host",
), ),
"_java_plugin": attr.label( "_java_plugin": attr.label(
default = Label("@grpc_java//compiler:grpc_java_plugin"), default = Label("//compiler:grpc_java_plugin"),
executable = True, executable = True,
cfg = "host", cfg = "host",
), ),
@ -107,9 +107,9 @@ def java_grpc_library(name, srcs, deps, flavor=None,
) )
added_deps = [ added_deps = [
"@grpc_java//core", "//core",
"@grpc_java//stub", "//stub",
"@grpc_java//protobuf", "//protobuf",
"@com_google_guava_guava//jar", "@com_google_guava_guava//jar",
] ]
if flavor == "normal": if flavor == "normal":