load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:jvm.bzl", "jvm_maven_import_external") _DEFAULT_REPOSITORIES = ["https://repo.maven.apache.org/maven2"] def pgv_dependencies(maven_repos = _DEFAULT_REPOSITORIES): if not native.existing_rule("io_bazel_rules_go"): http_archive( name = "io_bazel_rules_go", sha256 = "33acc4ae0f70502db4b893c9fc1dd7a9bf998c23e7ff2c4517741d4049a976f8", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.48.0/rules_go-v0.48.0.zip", "https://github.com/bazelbuild/rules_go/releases/download/v0.48.0/rules_go-v0.48.0.zip", ], ) if not native.existing_rule("bazel_gazelle"): http_archive( name = "bazel_gazelle", sha256 = "d76bf7a60fd8b050444090dfa2837a4eaf9829e1165618ee35dceca5cbdf58d5", url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/bazel-gazelle-v0.37.0.tar.gz", ) if not native.existing_rule("com_google_protobuf"): http_archive( name = "com_google_protobuf", url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz", sha256 = "da288bf1daa6c04d03a9051781caa52aceb9163586bff9aa6cfb12f69b9395aa", strip_prefix = "protobuf-27.0", ) # TODO(akonradi): This shouldn't be necessary since the same http_archive block is imported by # protobuf_deps from @com_google_protobuf. Investigate why. if not native.existing_rule("zlib"): http_archive( name = "zlib", build_file = "@com_google_protobuf//:third_party/zlib.BUILD", sha256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30", strip_prefix = "zlib-1.2.13", urls = ["https://zlib.net/fossils/zlib-1.2.13.tar.gz"], ) if not native.existing_rule("bazel_skylib"): http_archive( name = "bazel_skylib", sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa", urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz"], ) if not native.existing_rule("com_google_re2j"): jvm_maven_import_external( name = "com_google_re2j", artifact = "com.google.re2j:re2j:1.2", artifact_sha256 = "e9dc705fd4c570344b54a7146b2e3a819cdc271a29793f4acc1a93b56a388e59", server_urls = maven_repos, ) if not native.existing_rule("com_googlesource_code_re2"): http_archive( name = "com_googlesource_code_re2", sha256 = "2e9489a31ae007c81e90e8ec8a15d62d58a9c18d4fd1603f6441ef248556b41f", strip_prefix = "re2-2020-07-06", urls = ["https://github.com/google/re2/archive/2020-07-06.tar.gz"], ) if not native.existing_rule("com_google_guava"): jvm_maven_import_external( name = "com_google_guava", artifact = "com.google.guava:guava:27.0-jre", artifact_sha256 = "63b09db6861011e7fb2481be7790c7fd4b03f0bb884b3de2ecba8823ad19bf3f", server_urls = maven_repos, ) if not native.existing_rule("org_apache_commons_validator"): jvm_maven_import_external( name = "org_apache_commons_validator", artifact = "commons-validator:commons-validator:1.6", artifact_sha256 = "bd62795d7068a69cbea333f6dbf9c9c1a6ad7521443fb57202a44874f240ba25", server_urls = maven_repos, ) if not native.existing_rule("rules_python"): http_archive( name = "rules_python", sha256 = "4912ced70dc1a2a8e4b86cec233b192ca053e82bc72d877b98e126156e8f228d", strip_prefix = "rules_python-0.32.2", url = "https://github.com/bazelbuild/rules_python/releases/download/0.32.2/rules_python-0.32.2.tar.gz", ) # Required by io_bazel_rules_go if not native.existing_rule("rules_proto"): http_archive( name = "rules_proto", sha256 = "303e86e722a520f6f326a50b41cfc16b98fe6d1955ce46642a5b7a67c11c0f5d", strip_prefix = "rules_proto-6.0.0", url = "https://github.com/bazelbuild/rules_proto/releases/download/6.0.0/rules_proto-6.0.0.tar.gz", ) if not native.existing_rule("rules_cc"): http_archive( name = "rules_cc", sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf", strip_prefix = "rules_cc-0.0.9", url = "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz", ) if not native.existing_rule("bazel_features"): http_archive( name = "bazel_features", sha256 = "9390b391a68d3b24aef7966bce8556d28003fe3f022a5008efc7807e8acaaf1a", strip_prefix = "bazel_features-1.36.0", url = "https://github.com/bazel-contrib/bazel_features/releases/download/v1.36.0/bazel_features-v1.36.0.tar.gz", )