• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1workspace(name = "com_google_protobuf")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5local_repository(
6    name = "com_google_protobuf_examples",
7    path = "examples",
8)
9
10http_archive(
11    name = "com_google_googletest",
12    sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
13    strip_prefix = "googletest-release-1.10.0",
14    urls = [
15        "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
16        "https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
17    ],
18)
19
20load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
21load("//:protobuf_deps.bzl", "protobuf_deps")
22
23# Load common dependencies.
24protobuf_deps()
25load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external")
26
27bind(
28    name = "python_headers",
29    actual = "//util/python:python_headers",
30)
31
32# TODO(yannic): Remove in 3.13.0.
33bind(
34    name = "gtest",
35    actual = "@com_google_googletest//:gtest",
36)
37
38# TODO(yannic): Remove in 3.13.0.
39bind(
40    name = "gtest_main",
41    actual = "@com_google_googletest//:gtest_main",
42)
43
44jvm_maven_import_external(
45    name = "guava_maven",
46    artifact = "com.google.guava:guava:18.0",
47    artifact_sha256 = "d664fbfc03d2e5ce9cab2a44fb01f1d0bf9dfebeccc1a473b1f9ea31f79f6f99",
48    server_urls = [
49        "https://jcenter.bintray.com/",
50        "https://repo1.maven.org/maven2",
51    ],
52)
53
54bind(
55    name = "guava",
56    actual = "@guava_maven//jar",
57)
58
59jvm_maven_import_external(
60    name = "gson_maven",
61    artifact = "com.google.code.gson:gson:2.7",
62    artifact_sha256 = "2d43eb5ea9e133d2ee2405cc14f5ee08951b8361302fdd93494a3a997b508d32",
63    server_urls = [
64        "https://jcenter.bintray.com/",
65        "https://repo1.maven.org/maven2",
66    ],
67)
68
69bind(
70    name = "gson",
71    actual = "@gson_maven//jar",
72)
73
74jvm_maven_import_external(
75    name = "error_prone_annotations_maven",
76    artifact = "com.google.errorprone:error_prone_annotations:2.3.2",
77    artifact_sha256 = "357cd6cfb067c969226c442451502aee13800a24e950fdfde77bcdb4565a668d",
78    server_urls = [
79        "https://jcenter.bintray.com/",
80        "https://repo1.maven.org/maven2",
81    ],
82)
83
84bind(
85    name = "error_prone_annotations",
86    actual = "@error_prone_annotations_maven//jar",
87)
88
89# For `cc_proto_blacklist_test`.
90load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
91
92bazel_skylib_workspace()
93