diff options
author | Rodrigo Queiro <overdrigzed@gmail.com> | 2018-01-09 20:02:03 +0100 |
---|---|---|
committer | Eric Anderson <ejona@google.com> | 2018-01-09 11:02:03 -0800 |
commit | 2fb5d53d1bc36c4526d7717fa3723c41beab812f (patch) | |
tree | 080768080405805f89ea7cdf199df0ec4dde124c /repositories.bzl | |
parent | 015b2fffa31995ff7923b4076f9324d464b7d827 (diff) | |
download | grpc-grpc-java-2fb5d53d1bc36c4526d7717fa3723c41beab812f.tar.gz |
bazel: Remove com_google_protobuf_java
This was deprecated with Bazel 0.8.0, which now uses
@com_google_protobuf instead.
This change will break users that use
grpc_java_repositories(omit_com_google_protobuf_java=True), so I've
added a custom error message to make the resolution clearer.
Diffstat (limited to 'repositories.bzl')
-rw-r--r-- | repositories.bzl | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/repositories.bzl b/repositories.bzl index c168e9a33..a2eca47c7 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -45,8 +45,8 @@ def grpc_java_repositories( com_google_instrumentation_api() if not omit_com_google_protobuf: com_google_protobuf() - if not omit_com_google_protobuf_java: - com_google_protobuf_java() + if omit_com_google_protobuf_java: + fail("omit_com_google_protobuf_java is no longer supported and must be not be passed to grpc_java_repositories()") if not omit_com_google_protobuf_nano_protobuf_javanano: com_google_protobuf_nano_protobuf_javanano() if not omit_com_google_truth_truth: @@ -153,16 +153,6 @@ def com_google_protobuf(): urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"], ) -def com_google_protobuf_java(): - # java_proto_library rules implicitly depend on @com_google_protobuf_java//:java_toolchain, - # which is the Java proto runtime (base classes and common utilities). - native.http_archive( - name = "com_google_protobuf_java", - sha256 = "1f8b9b202e9a4e467ff0b0f25facb1642727cdf5e69092038f15b37c75b99e45", - strip_prefix = "protobuf-3.5.1", - urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"], - ) - def com_google_protobuf_nano_protobuf_javanano(): native.maven_jar( name = "com_google_protobuf_nano_protobuf_javanano", |