1workspace(name = "com_google_protobuf") 2 3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 4load("//:protobuf_deps.bzl", "protobuf_deps") 5 6# Load common dependencies. 7protobuf_deps() 8 9new_local_repository( 10 name = "submodule_gmock", 11 build_file = "@//:third_party/googletest/BUILD.bazel", 12 path = "third_party/googletest", 13) 14 15http_archive( 16 name = "six_archive", 17 build_file = "@//:six.BUILD", 18 sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", 19 urls = ["https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55"], 20) 21 22http_archive( 23 name = "bazel_skylib", 24 sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d", 25 strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b", 26 urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"], 27) 28 29bind( 30 name = "python_headers", 31 actual = "//util/python:python_headers", 32) 33 34bind( 35 name = "gtest", 36 actual = "@submodule_gmock//:gtest", 37) 38 39bind( 40 name = "gtest_main", 41 actual = "@submodule_gmock//:gtest_main", 42) 43 44bind( 45 name = "six", 46 actual = "@six_archive//:six", 47) 48 49maven_jar( 50 name = "guava_maven", 51 artifact = "com.google.guava:guava:18.0", 52) 53 54bind( 55 name = "guava", 56 actual = "@guava_maven//jar", 57) 58 59maven_jar( 60 name = "gson_maven", 61 artifact = "com.google.code.gson:gson:2.7", 62) 63 64bind( 65 name = "gson", 66 actual = "@gson_maven//jar", 67) 68 69maven_jar( 70 name = "error_prone_annotations_maven", 71 artifact = "com.google.errorprone:error_prone_annotations:2.3.2", 72) 73 74bind( 75 name = "error_prone_annotations", 76 actual = "@error_prone_annotations_maven//jar", 77) 78