aboutsummaryrefslogtreecommitdiff
path: root/examples/WORKSPACE
blob: 15e9158c944b371d2a4da747d31d3448801f05e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
workspace(name = "opencensus_examples")

git_repository(
    name = "grpc_java",
    remote = "https://github.com/grpc/grpc-java.git",
    tag = "v1.9.0",
)

load("//:opencensus_workspace.bzl", "opencensus_maven_jars")
load("@grpc_java//:repositories.bzl", "grpc_java_repositories")

opencensus_maven_jars()
grpc_java_repositories(
    # Omit to avoid conflicts.

    # TODO(songya): Remove this one after gRPC v1.10.0.
    omit_com_google_instrumentation_api=True,

    # TODO(songya): Uncomment this one after gRPC v1.10.0.
    # omit_com_google_auth_google_auth_library_credentials=True,

    omit_com_google_api_grpc_google_common_protos=True,
    omit_com_google_code_findbugs_jsr305=True,
    omit_com_google_code_gson=True,
    omit_com_google_errorprone_error_prone_annotations=True,
    omit_com_google_guava=True,
    omit_com_google_protobuf=True,
    omit_com_google_protobuf_java=True,
    omit_com_google_protobuf_nano_protobuf_javanano=True,
    omit_com_google_truth_truth=True,
    omit_com_squareup_okhttp=True,
    omit_com_squareup_okio=True,

    # Import netty dependencies.
    omit_io_netty_buffer=False,
    omit_io_netty_common=False,
    omit_io_netty_transport=False,
    omit_io_netty_codec=False,
    omit_io_netty_codec_socks=False,
    omit_io_netty_codec_http=False,
    omit_io_netty_handler=False,
    omit_io_netty_resolver=False,

    # These 3 netty dependencies have already been included in opencensus_workspace.bzl
    omit_io_netty_handler_proxy=True,
    omit_io_netty_codec_http2=True,
    omit_io_netty_tcnative_boringssl_static=True,

    omit_io_opencensus_api=True,
    omit_io_opencensus_grpc_metrics=True,
    omit_junit_junit=True
)

# proto_library, cc_proto_library, and java_proto_library rules implicitly
# depend on @com_google_protobuf for protoc and proto runtimes.
# This statement defines the @com_google_protobuf repo.
http_archive(
    name = "com_google_protobuf",
    sha256 = "1f8b9b202e9a4e467ff0b0f25facb1642727cdf5e69092038f15b37c75b99e45",
    strip_prefix = "protobuf-3.5.1",
    urls = ["https://github.com/google/protobuf/archive/v3.5.1.zip"],
)

# TODO(songya): Remove this one after gRPC v1.10.0.
# See https://github.com/grpc/grpc-java/issues/3175.
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"],
)