WORKSPACE 2.4 KB

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