aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf
diff options
context:
space:
mode:
authorGravatar Carmi Grushko <carmi@google.com>2017-02-08 12:29:31 -0500
committerGravatar Kristina Chodorow <kchodorow@google.com>2017-02-08 14:25:42 -0500
commit6795079fb057c14c301e9b251bcd42c430b0c8e4 (patch)
tree86962b31864fbbbff923b05c3861b2762d4063b4 /third_party/protobuf
parente15a31a3281ae386935d33f857351adea767b420 (diff)
Alias "protobuf_java" to the Java proto runtime,
to match the name in the upstream protobuf project. Change-Id: I0ac9612c2151f9b96aca1904b192b5b525d021a2
Diffstat (limited to 'third_party/protobuf')
-rw-r--r--third_party/protobuf/BUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/protobuf/BUILD b/third_party/protobuf/BUILD
index 12560eb98e..9fa483deb1 100644
--- a/third_party/protobuf/BUILD
+++ b/third_party/protobuf/BUILD
@@ -18,6 +18,15 @@ proto_alias("protoc", PROTOBUF_VERSION)
proto_alias("protobuf", PROTOBUF_VERSION)
+# "protobuf" above refers to the Java proto runtime, but upstream,
+# "protobuf" refers to the C++ proto runtime. This alias allows us
+# to switch all Bazel refernces to "protobuf" to the correct "protobuf_java".
+# This alias should be temporary while this transition is done.
+alias(
+ name = "protobuf_java",
+ actual = "//third_party/protobuf/3.0.0:protobuf"
+)
+
proto_alias("protobuf-jars", PROTOBUF_VERSION)
proto_alias("protobuf-util", PROTOBUF_VERSION)