2017-09-05 15:15:10 +00:00
|
|
|
workspace(name = "com_google_protobuf")
|
2018-12-11 19:58:26 +00:00
|
|
|
|
2020-03-02 23:15:22 +00:00
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
2019-07-26 11:14:19 +00:00
|
|
|
local_repository(
|
|
|
|
name = "com_google_protobuf_examples",
|
|
|
|
path = "examples",
|
|
|
|
)
|
|
|
|
|
2020-03-02 23:15:22 +00:00
|
|
|
http_archive(
|
|
|
|
name = "com_google_googletest",
|
|
|
|
sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb",
|
|
|
|
strip_prefix = "googletest-release-1.10.0",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz",
|
|
|
|
"https://github.com/google/googletest/archive/release-1.10.0.tar.gz",
|
|
|
|
],
|
2019-08-06 19:12:06 +00:00
|
|
|
)
|
|
|
|
|
2021-03-14 09:58:03 +00:00
|
|
|
http_archive(
|
|
|
|
name = "com_github_google_benchmark",
|
|
|
|
sha256 = "2a778d821997df7d8646c9c59b8edb9a573a6e04c534c01892a40aa524a7b68c",
|
|
|
|
strip_prefix = "benchmark-bf585a2789e30585b4e3ce6baf11ef2750b54677",
|
|
|
|
urls = [
|
|
|
|
"https://github.com/google/benchmark/archive/bf585a2789e30585b4e3ce6baf11ef2750b54677.zip",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2019-02-26 18:07:55 +00:00
|
|
|
# Load common dependencies.
|
2021-04-20 18:36:32 +00:00
|
|
|
load("//:protobuf_deps.bzl", "protobuf_deps")
|
2019-02-26 18:07:55 +00:00
|
|
|
protobuf_deps()
|
2017-09-05 15:15:10 +00:00
|
|
|
|
2015-06-18 23:45:27 +00:00
|
|
|
bind(
|
2016-02-12 02:11:10 +00:00
|
|
|
name = "python_headers",
|
|
|
|
actual = "//util/python:python_headers",
|
2015-06-18 23:45:27 +00:00
|
|
|
)
|
|
|
|
|
2021-04-20 18:36:32 +00:00
|
|
|
load("@rules_jvm_external//:defs.bzl", "maven_install")
|
|
|
|
maven_install(
|
|
|
|
artifacts = [
|
2021-04-22 01:05:18 +00:00
|
|
|
"com.google.code.gson:gson:2.8.6",
|
2021-04-20 18:36:32 +00:00
|
|
|
"com.google.errorprone:error_prone_annotations:2.3.2",
|
2021-09-22 12:41:03 +00:00
|
|
|
"com.google.j2objc:j2obj_annotations:1.3",
|
2021-06-21 22:28:17 +00:00
|
|
|
"com.google.guava:guava:30.1.1-jre",
|
|
|
|
"com.google.truth:truth:1.1.2",
|
2021-04-20 18:36:32 +00:00
|
|
|
"junit:junit:4.12",
|
|
|
|
"org.easymock:easymock:3.2",
|
|
|
|
],
|
|
|
|
repositories = [
|
2019-12-02 17:35:00 +00:00
|
|
|
"https://repo1.maven.org/maven2",
|
2021-04-22 19:12:41 +00:00
|
|
|
"https://repo.maven.apache.org/maven2",
|
2019-12-02 17:35:00 +00:00
|
|
|
],
|
2021-04-21 23:26:05 +00:00
|
|
|
# For updating instructions, see:
|
|
|
|
# https://github.com/bazelbuild/rules_jvm_external#updating-maven_installjson
|
|
|
|
maven_install_json = "//:maven_install.json",
|
2016-03-11 01:50:25 +00:00
|
|
|
)
|
|
|
|
|
2021-04-21 23:26:05 +00:00
|
|
|
load("@maven//:defs.bzl", "pinned_maven_install")
|
|
|
|
pinned_maven_install()
|
|
|
|
|
2016-03-11 01:50:25 +00:00
|
|
|
bind(
|
|
|
|
name = "guava",
|
2021-04-20 18:36:32 +00:00
|
|
|
actual = "@maven//:com_google_guava_guava",
|
2016-03-11 01:50:25 +00:00
|
|
|
)
|
|
|
|
|
2021-04-20 18:36:32 +00:00
|
|
|
bind(
|
|
|
|
name = "gson",
|
|
|
|
actual = "@maven//:com_google_code_gson_gson",
|
2016-03-11 01:50:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
bind(
|
2021-04-20 18:36:32 +00:00
|
|
|
name = "error_prone_annotations",
|
|
|
|
actual = "@maven//:com_google_errorprone_error_prone_annotations",
|
2016-03-11 01:50:25 +00:00
|
|
|
)
|
2019-03-03 20:57:33 +00:00
|
|
|
|
2021-09-22 12:41:03 +00:00
|
|
|
bind(
|
|
|
|
name = "j2objc_annotations",
|
|
|
|
actual = "@maven//:com_google_j2objc_j2objc_annotations",
|
|
|
|
)
|
|
|
|
|
2021-04-20 18:36:32 +00:00
|
|
|
bind(
|
|
|
|
name = "junit",
|
|
|
|
actual = "@maven//:junit_junit",
|
2019-03-03 20:57:33 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
bind(
|
2021-04-20 18:36:32 +00:00
|
|
|
name = "easymock",
|
|
|
|
actual = "@maven//:org_easymock_easymock",
|
|
|
|
)
|
|
|
|
|
|
|
|
bind(
|
|
|
|
name = "easymock_classextension",
|
|
|
|
actual = "@maven//:org_easymock_easymockclassextension",
|
|
|
|
)
|
|
|
|
|
|
|
|
bind(
|
|
|
|
name = "truth",
|
|
|
|
actual = "@maven//:com_google_truth_truth",
|
2019-03-03 20:57:33 +00:00
|
|
|
)
|
2020-01-15 18:27:35 +00:00
|
|
|
|
2021-04-22 01:05:18 +00:00
|
|
|
# For `cc_proto_blacklist_test` and `build_test`.
|
2020-01-15 18:27:35 +00:00
|
|
|
load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
|
|
|
|
bazel_skylib_workspace()
|