| Hailong Wen | 3ba71b6 | 2017-12-12 21:31:01 -0800 | [diff] [blame] | 1 | workspace(name = "opencensus_examples") |
| 2 | |
| Yang Song | 751ea3c | 2018-03-20 10:44:54 -0700 | [diff] [blame^] | 3 | git_repository( |
| 4 | name = "grpc_java", |
| 5 | remote = "https://github.com/grpc/grpc-java.git", |
| 6 | tag = "v1.9.0", |
| 7 | ) |
| 8 | |
| Hailong Wen | 3ba71b6 | 2017-12-12 21:31:01 -0800 | [diff] [blame] | 9 | load("//:opencensus_workspace.bzl", "opencensus_maven_jars") |
| Yang Song | 751ea3c | 2018-03-20 10:44:54 -0700 | [diff] [blame^] | 10 | load("@grpc_java//:repositories.bzl", "grpc_java_repositories") |
| Hailong Wen | 3ba71b6 | 2017-12-12 21:31:01 -0800 | [diff] [blame] | 11 | |
| 12 | opencensus_maven_jars() |
| Yang Song | 751ea3c | 2018-03-20 10:44:54 -0700 | [diff] [blame^] | 13 | grpc_java_repositories( |
| 14 | # Omit to avoid conflicts. |
| 15 | |
| 16 | # TODO(songya): Remove this one after gRPC v1.10.0. |
| 17 | omit_com_google_instrumentation_api=True, |
| 18 | |
| 19 | # TODO(songya): Uncomment this one after gRPC v1.10.0. |
| 20 | # omit_com_google_auth_google_auth_library_credentials=True, |
| 21 | |
| 22 | omit_com_google_api_grpc_google_common_protos=True, |
| 23 | omit_com_google_code_findbugs_jsr305=True, |
| 24 | omit_com_google_code_gson=True, |
| 25 | omit_com_google_errorprone_error_prone_annotations=True, |
| 26 | omit_com_google_guava=True, |
| 27 | omit_com_google_protobuf=True, |
| 28 | omit_com_google_protobuf_java=True, |
| 29 | omit_com_google_protobuf_nano_protobuf_javanano=True, |
| 30 | omit_com_google_truth_truth=True, |
| 31 | omit_com_squareup_okhttp=True, |
| 32 | omit_com_squareup_okio=True, |
| 33 | |
| 34 | # Import netty dependencies. |
| 35 | omit_io_netty_buffer=False, |
| 36 | omit_io_netty_common=False, |
| 37 | omit_io_netty_transport=False, |
| 38 | omit_io_netty_codec=False, |
| 39 | omit_io_netty_codec_socks=False, |
| 40 | omit_io_netty_codec_http=False, |
| 41 | omit_io_netty_handler=False, |
| 42 | omit_io_netty_resolver=False, |
| 43 | |
| 44 | # These 3 netty dependencies have already been included in opencensus_workspace.bzl |
| 45 | omit_io_netty_handler_proxy=True, |
| 46 | omit_io_netty_codec_http2=True, |
| 47 | omit_io_netty_tcnative_boringssl_static=True, |
| 48 | |
| 49 | omit_io_opencensus_api=True, |
| 50 | omit_io_opencensus_grpc_metrics=True, |
| 51 | omit_junit_junit=True |
| 52 | ) |
| 53 | |
| 54 | # proto_library, cc_proto_library, and java_proto_library rules implicitly |
| 55 | # depend on @com_google_protobuf for protoc and proto runtimes. |
| 56 | # This statement defines the @com_google_protobuf repo. |
| 57 | http_archive( |
| 58 | name = "com_google_protobuf", |
| 59 | sha256 = "1f8b9b202e9a4e467ff0b0f25facb1642727cdf5e69092038f15b37c75b99e45", |
| 60 | strip_prefix = "protobuf-3.5.1", |
| 61 | urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"], |
| 62 | ) |
| 63 | |
| 64 | # TODO(songya): Remove this one after gRPC v1.10.0. |
| 65 | # See https://github.com/grpc/grpc-java/issues/3175. |
| 66 | http_archive( |
| 67 | name = "com_google_protobuf_java", |
| 68 | sha256 = "1f8b9b202e9a4e467ff0b0f25facb1642727cdf5e69092038f15b37c75b99e45", |
| 69 | strip_prefix = "protobuf-3.5.1", |
| 70 | urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"], |
| 71 | ) |