Sergiusz Bazanski | 5f9b1ec | 2019-09-22 02:19:18 +0200 | [diff] [blame] | 1 | workspace( |
| 2 | name = "hscloud", |
| 3 | ) |
| 4 | |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 5 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 6 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 7 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 8 | # Protobuf deps (shared between many rules). |
| 9 | # Load this as early as possible, to avoid a different version being pulled in by deps of something else |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 10 | http_archive( |
| 11 | name = "com_google_protobuf", |
radex | 38203d2 | 2021-08-30 18:49:24 +0200 | [diff] [blame] | 12 | sha256 = "c6003e1d2e7fefa78a3039f19f383b4f3a61e81be8c19356f85b6461998ad3db", |
| 13 | strip_prefix = "protobuf-3.17.3", |
| 14 | urls = ["https://github.com/google/protobuf/archive/v3.17.3.tar.gz"], |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 18 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 19 | protobuf_deps() |
| 20 | |
Bartosz Stebel | 999a8f5 | 2021-06-26 14:51:15 +0200 | [diff] [blame] | 21 | # Force rules_python at a bleeding edge version (for setuptools >44). |
| 22 | rules_python_version = "929d5a13d4eb1b930086d9353fc6f2d6ad306e43" |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 23 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 24 | http_archive( |
| 25 | name = "rules_python", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 26 | sha256 = "b590e4fc07ec842b8cc8a39a4ca0336f44d7d5f96753229d240884cd016dc1e3", |
Bartosz Stebel | 999a8f5 | 2021-06-26 14:51:15 +0200 | [diff] [blame] | 27 | strip_prefix = "rules_python-{}".format(rules_python_version), |
| 28 | url = "https://github.com/bazelbuild/rules_python/archive/{}.zip".format(rules_python_version), |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 29 | ) |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 30 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 31 | # Download Go/Gazelle rules |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 32 | http_archive( |
| 33 | name = "io_bazel_rules_go", |
radex | 38203d2 | 2021-08-30 18:49:24 +0200 | [diff] [blame] | 34 | sha256 = "69de5c704a05ff37862f7e0f5534d4f479418afc21806c887db544a316f3cb6b", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 35 | urls = [ |
radex | 38203d2 | 2021-08-30 18:49:24 +0200 | [diff] [blame] | 36 | "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz", |
| 37 | "https://github.com/bazelbuild/rules_go/releases/download/v0.27.0/rules_go-v0.27.0.tar.gz", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 38 | ], |
| 39 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 40 | |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 41 | http_archive( |
| 42 | name = "bazel_gazelle", |
radex | 38203d2 | 2021-08-30 18:49:24 +0200 | [diff] [blame] | 43 | sha256 = "62ca106be173579c0a167deb23358fdfe71ffa1e4cfdddf5582af26520f1c66f", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 44 | urls = [ |
radex | 38203d2 | 2021-08-30 18:49:24 +0200 | [diff] [blame] | 45 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz", |
| 46 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 47 | ], |
| 48 | ) |
| 49 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 50 | # Python rules |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 51 | # Important: rules_python must be loaded before protobuf (and grpc) because they load an older version otherwise |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 52 | load("@rules_python//python:pip.bzl", "pip_parse") |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 53 | |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 54 | pip_parse( |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 55 | name = "pydeps", |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 56 | requirements_lock = "//third_party/py:requirements.txt", |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 57 | ) |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 58 | |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 59 | load("@pydeps//:requirements.bzl", "install_deps") |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 60 | |
Serge Bazanski | 4e534cc | 2021-06-29 19:16:45 +0000 | [diff] [blame] | 61 | install_deps() |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 62 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 63 | # Setup Go toolchain. |
Serge Bazanski | 4b61330 | 2021-02-13 13:16:10 +0100 | [diff] [blame] | 64 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains") |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 65 | |
radex | 38203d2 | 2021-08-30 18:49:24 +0200 | [diff] [blame] | 66 | go_register_toolchains(version = "1.17") |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 67 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 68 | # IMPORTANT: match protobuf version above with the one loaded by grpc |
| 69 | http_archive( |
| 70 | name = "com_github_grpc_grpc", |
| 71 | sha256 = "419dba362eaf8f1d36849ceee17c3e2ff8ff12ac666b42d3ff02a164ebe090e9", |
| 72 | strip_prefix = "grpc-1.30.0", |
| 73 | urls = ["https://github.com/grpc/grpc/archive/v1.30.0.tar.gz"], |
| 74 | ) |
| 75 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 76 | # Load grpc deps after Go, to prevent overriding Go toolchains/SDK. |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 77 | load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 78 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 79 | grpc_deps() |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 80 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 81 | load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 82 | |
Bartosz Stebel | cae27ec | 2020-07-03 07:05:15 +0200 | [diff] [blame] | 83 | grpc_extra_deps() |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 84 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 85 | load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 86 | |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 87 | go_rules_dependencies() |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 88 | |
Serge Bazanski | 1e1a4dd | 2020-08-01 14:07:27 +0200 | [diff] [blame] | 89 | # gazelle:repository_macro third_party/go/repositories.bzl%go_repositories |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 90 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") |
| 91 | |
Serge Bazanski | 3e2a5a5 | 2021-10-07 19:12:27 +0000 | [diff] [blame] | 92 | # Force newer version of golang.org/x/crypto that gazelle_dependencies would |
| 93 | # usually get. |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 94 | go_repository( |
Serge Bazanski | 3e2a5a5 | 2021-10-07 19:12:27 +0000 | [diff] [blame] | 95 | name = "org_golang_x_crypto", |
| 96 | build_naming_convention = "go_default_library", |
| 97 | importpath = "golang.org/x/crypto", |
| 98 | sum = "h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg=", |
| 99 | version = "v0.0.0-20210921155107-089bfa567519", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 100 | ) |
| 101 | |
Patryk Jakuszew | 30f9d03 | 2020-06-05 23:37:34 +0200 | [diff] [blame] | 102 | gazelle_dependencies() |
| 103 | |
Serge Bazanski | 194b1c8 | 2020-09-25 20:24:17 +0000 | [diff] [blame] | 104 | # Load Go third-party packages. |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 105 | load("//third_party/go:repositories.bzl", "go_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 106 | |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 107 | go_repositories() |
| 108 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 109 | # Docker rules |
| 110 | |
| 111 | http_archive( |
| 112 | name = "io_bazel_rules_docker", |
Norbert Szulc | a6e1b8d | 2021-05-12 14:17:31 +0200 | [diff] [blame] | 113 | sha256 = "59d5b42ac315e7eadffa944e86e90c2990110a1c8075f1cd145f487e999d22b3", |
| 114 | strip_prefix = "rules_docker-0.17.0", |
| 115 | urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.17.0/rules_docker-v0.17.0.tar.gz"], |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 116 | ) |
| 117 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 118 | load("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl", docker_toolchain_configure = "toolchain_configure") |
| 119 | |
| 120 | # This forces the use of Docker $HOME/.docker configuration. |
| 121 | docker_toolchain_configure( |
| 122 | name = "docker_config", |
| 123 | client_config = "", |
Serge Bazanski | b2d6b11 | 2019-07-30 13:07:04 +0200 | [diff] [blame] | 124 | docker_path = "/usr/bin/docker", |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 125 | ) |
| 126 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 127 | load( |
| 128 | "@io_bazel_rules_docker//repositories:repositories.bzl", |
| 129 | container_repositories = "repositories", |
| 130 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 131 | |
Serge Bazanski | 2ce3676 | 2019-07-14 16:29:52 +0200 | [diff] [blame] | 132 | container_repositories() |
Sergiusz Bazanski | 8fe651b | 2019-07-21 23:50:05 +0200 | [diff] [blame] | 133 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 134 | # Docker base images |
| 135 | |
| 136 | load("@io_bazel_rules_docker//container:container.bzl", "container_pull") |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 137 | |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 138 | container_pull( |
| 139 | name = "prodimage-bionic", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 140 | digest = "sha256:1cd1f84169b8e1414a5d511b42909f2d540831c67b6799ae9af8cd6a80d75b5f", |
Serge Bazanski | b2d6b11 | 2019-07-30 13:07:04 +0200 | [diff] [blame] | 141 | registry = "registry.k0.hswaw.net", |
| 142 | repository = "q3k/prodimage", |
Serge Bazanski | ec71cb5 | 2019-08-22 18:13:13 +0200 | [diff] [blame] | 143 | tag = "20190822-1227", |
Sergiusz Bazanski | 6586533 | 2019-05-18 16:23:45 +0200 | [diff] [blame] | 144 | ) |
| 145 | |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 146 | container_pull( |
Serge Bazanski | dd69221 | 2021-03-11 17:51:02 +0100 | [diff] [blame] | 147 | name = "gerrit-3.3.2", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 148 | digest = "sha256:f7fc8b749706f38475f94191117091973914a8f084e69518deff7dbc9c2c557d", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 149 | registry = "index.docker.io", |
| 150 | repository = "gerritcodereview/gerrit", |
Serge Bazanski | dd69221 | 2021-03-11 17:51:02 +0100 | [diff] [blame] | 151 | tag = "3.3.2-ubuntu20", |
Sergiusz Bazanski | a7e26cc | 2019-06-21 20:38:35 +0200 | [diff] [blame] | 152 | ) |
| 153 | |
Sergiusz Bazanski | 4805057 | 2020-05-10 21:34:10 +0200 | [diff] [blame] | 154 | # third_party/factorio |
| 155 | load("//third_party/factorio:factorio.bzl", "factorio_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 156 | |
Sergiusz Bazanski | 4805057 | 2020-05-10 21:34:10 +0200 | [diff] [blame] | 157 | factorio_repositories() |
Sergiusz Bazanski | 59786c5 | 2020-04-01 02:05:42 +0200 | [diff] [blame] | 158 | |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 159 | # For devtools/gerrit/gerrit-oauth-provider and gerrit OWNERS plugin |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 160 | |
| 161 | git_repository( |
| 162 | name = "com_googlesource_gerrit_bazlets", |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 163 | commit = "a511f3c90129d7de7ae67c0637001162980c08d5", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 164 | remote = "https://gerrit.googlesource.com/bazlets", |
Bartosz Stebel | 0e2057f | 2020-12-28 21:40:09 +0100 | [diff] [blame] | 165 | shallow_since = "1606931369 -0600", |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 166 | ) |
| 167 | |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 168 | load("@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", "gerrit_api") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 169 | |
Sergiusz Bazanski | 573da78 | 2019-06-21 19:59:52 +0200 | [diff] [blame] | 170 | gerrit_api() |
| 171 | |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 172 | load("//devtools/gerrit/gerrit-oauth-provider:external_plugin_deps.bzl", gerrit_oauth_deps = "external_plugin_deps") |
| 173 | |
| 174 | gerrit_oauth_deps(omit_commons_codec = False) |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 175 | |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 176 | # Gerrit 3.3.2 built by q3k, backported with fix for 'empty reviewers column' bug. |
| 177 | # See: https://bugs.chromium.org/p/gerrit/issues/detail?id=13899 |
| 178 | # Override can be removed once we update to > 3.3.2, as the fix for this is |
| 179 | # pending for the 3.3 branch. |
| 180 | # |
| 181 | # Built from v3.3.2 tag at df0507df5917fd78af01aee2495b2663530d52d1 |
| 182 | # Cherry-picked fix from 8731af3ae785efe9ecff7f3d04302b6b01c4fc0b |
| 183 | # Resulted in commit 5949bfb86e62a32a95293e339ed86bfe52a283e9 |
| 184 | # Built against Java 8: |
| 185 | # bazel build --java_toolchain //tools:error_prone_warnings_toolchain :release |
| 186 | # |
| 187 | http_file( |
| 188 | name = "org_q3k_gerrit_3_3_2_backport", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 189 | downloaded_file_path = "gerrit.war", |
| 190 | sha256 = "d1839d691a8534f4ccb27bed9a98281e45972fbebec50d004cecd4d5da2b15a6", |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 191 | urls = [ |
| 192 | "https://object.ceph-waw3.hswaw.net/q3k-personal/d1839d691a8534f4ccb27bed9a98281e45972fbebec50d004cecd4d5da2b15a6.war", |
| 193 | ], |
Serge Bazanski | 146c99e | 2021-03-18 19:15:38 +0000 | [diff] [blame] | 194 | ) |
| 195 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 196 | # minecraft spigot/bukkit deps |
| 197 | # this uses rules_jvm_external vs gerrit's maven_jar because we need SNAPSHOT support |
| 198 | |
| 199 | http_archive( |
| 200 | name = "io_grpc_grpc_java", |
| 201 | sha256 = "446ad7a2e85bbd05406dbf95232c7c49ed90de83b3b60cb2048b0c4c9f254d29", |
| 202 | strip_prefix = "grpc-java-1.29.0", |
| 203 | url = "https://github.com/grpc/grpc-java/archive/v1.29.0.zip", |
| 204 | ) |
| 205 | |
| 206 | RULES_JVM_EXTERNAL_TAG = "3.0" |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 207 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 208 | RULES_JVM_EXTERNAL_SHA = "62133c125bf4109dfd9d2af64830208356ce4ef8b165a6ef15bbff7460b35c3a" |
| 209 | |
| 210 | http_archive( |
| 211 | name = "rules_jvm_external", |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 212 | sha256 = RULES_JVM_EXTERNAL_SHA, |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 213 | strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 214 | url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, |
| 215 | ) |
| 216 | |
| 217 | load("@rules_jvm_external//:defs.bzl", "maven_install") |
| 218 | load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS") |
| 219 | load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS") |
| 220 | |
| 221 | maven_install( |
| 222 | artifacts = [ |
Serge Bazanski | 55cc9ab | 2021-02-15 22:09:17 +0100 | [diff] [blame] | 223 | "org.spigotmc:spigot-api:1.15.2-R0.1-20200624.001023-124", |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 224 | "io.grpc:grpc-netty-shaded:1.29.0", |
| 225 | "io.grpc:grpc-services:1.29.0", |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 226 | ] + IO_GRPC_GRPC_JAVA_ARTIFACTS, |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 227 | generate_compat_repositories = True, |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 228 | maven_install_json = "//third_party/java:maven_install.json", |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 229 | override_targets = IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS, |
| 230 | repositories = [ |
| 231 | "https://hub.spigotmc.org/nexus/content/repositories/snapshots", |
| 232 | "https://oss.sonatype.org/content/repositories/snapshots", |
| 233 | "https://repo1.maven.org/maven2/", |
| 234 | ], |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 235 | ) |
| 236 | |
| 237 | load("@maven//:defs.bzl", "pinned_maven_install") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 238 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 239 | pinned_maven_install() |
| 240 | |
| 241 | load("@maven//:compat.bzl", "compat_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 242 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 243 | compat_repositories() |
| 244 | |
| 245 | load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 246 | |
Sergiusz Bazanski | 32f8a58 | 2020-05-18 00:27:23 +0200 | [diff] [blame] | 247 | grpc_java_repositories() |
| 248 | |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 249 | # Gerrit OWNERS plugins external repositories |
| 250 | |
| 251 | git_repository( |
| 252 | name = "com_googlesource_gerrit_plugin_owners", |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 253 | commit = "17817c9e319073c03513f9d5177b6142b8fd567b", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 254 | remote = "https://gerrit.googlesource.com/plugins/owners/", |
Bartosz Stebel | 0e2057f | 2020-12-28 21:40:09 +0100 | [diff] [blame] | 255 | shallow_since = "1593642470 +0200", |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 256 | ) |
Serge Bazanski | 50e987c | 2021-07-11 12:32:36 +0000 | [diff] [blame] | 257 | |
| 258 | load("@com_googlesource_gerrit_plugin_owners//:external_plugin_deps_standalone.bzl", gerrit_owners_deps = "external_plugin_deps_standalone") |
| 259 | |
Serge Bazanski | faa326a | 2020-12-17 23:32:42 +0100 | [diff] [blame] | 260 | gerrit_owners_deps() |
Sergiusz Bazanski | 222a00a | 2020-04-12 18:37:21 +0200 | [diff] [blame] | 261 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 262 | # Go image repos for Docker |
| 263 | |
Sergiusz Bazanski | 0c3b9a5 | 2020-06-21 01:26:22 +0200 | [diff] [blame] | 264 | load("@io_bazel_rules_docker//go:image.bzl", go_image_repositories = "repositories") |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 265 | |
Sergiusz Bazanski | 356ea8b | 2019-07-21 23:56:43 +0200 | [diff] [blame] | 266 | go_image_repositories() |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 267 | |
| 268 | # oniguruma, with build from //third_party/oniguruma |
| 269 | |
| 270 | http_archive( |
| 271 | name = "com_github_kkos_oniguruma", |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 272 | build_file = "@hscloud//third_party/oniguruma:BUILD.external", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 273 | sha256 = "d33c849d1672af227944878cefe0a8fcf26fc62bedba32aa517f2f63c314a99e", |
| 274 | strip_prefix = "onig-6.9.5", |
| 275 | urls = ["https://github.com/kkos/oniguruma/releases/download/v6.9.5_rev1/onig-6.9.5_rev1.tar.gz"], |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 276 | ) |
| 277 | |
| 278 | # jq, with build from //third_party/jq |
| 279 | |
| 280 | http_archive( |
| 281 | name = "com_github_stedolan_jq", |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 282 | build_file = "@hscloud//third_party/jq:BUILD.external", |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 283 | sha256 = "5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72", |
| 284 | strip_prefix = "jq-1.6", |
| 285 | urls = ["https://github.com/stedolan/jq/releases/download/jq-1.6/jq-1.6.tar.gz"], |
Sergiusz Bazanski | 0037eda | 2020-06-13 22:43:06 +0200 | [diff] [blame] | 286 | ) |
Serge Bazanski | 1572e52 | 2020-12-03 23:19:28 +0100 | [diff] [blame] | 287 | |
Serge Bazanski | 1f06230 | 2021-06-01 22:24:34 +0000 | [diff] [blame] | 288 | # leaflet.js from NPM, used by //hswaw/site. |
| 289 | http_archive( |
| 290 | name = "com_npmjs_leaflet", |
Serge Bazanski | 1f06230 | 2021-06-01 22:24:34 +0000 | [diff] [blame] | 291 | build_file_content = """ |
| 292 | filegroup( |
| 293 | name = "distfiles", |
| 294 | srcs = [ |
| 295 | "package/dist/leaflet.js", |
| 296 | "package/dist/leaflet.css", |
| 297 | "package/dist/images/layers-2x.png", |
| 298 | "package/dist/images/layers.png", |
| 299 | "package/dist/images/marker-icon-2x.png", |
| 300 | "package/dist/images/marker-icon.png", |
| 301 | "package/dist/images/marker-shadow.png", |
| 302 | ], |
| 303 | visibility = ["//visibility:public"], |
| 304 | ) |
| 305 | """, |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 306 | sha256 = "43aca726165904ff73a34571c263b561cec94e6b9992a4414a600f3e984d1b03", |
| 307 | urls = ["https://registry.npmjs.org/leaflet/-/leaflet-1.7.1.tgz"], |
| 308 | ) |
| 309 | |
| 310 | # noVNC, used by //dc/drackvm. |
| 311 | http_archive( |
| 312 | name = "com_github_novnc_novnc", |
| 313 | build_file_content = """ |
| 314 | filegroup( |
| 315 | name = "distfiles", |
| 316 | srcs = [ |
| 317 | "vnc.html", |
| 318 | ] + glob([ |
| 319 | "app/**", |
| 320 | "core/**", |
| 321 | "vendor/**", |
| 322 | ]), |
| 323 | visibility = ["//visibility:public"], |
| 324 | ) |
| 325 | """, |
Serge Bazanski | 3943744 | 2021-10-07 18:45:20 +0000 | [diff] [blame] | 326 | sha256 = "2c972cca34376dfd2a54939e7e571e466511bf592d03e838440b3c8868441eaf", |
| 327 | strip_prefix = "noVNC-1.3.0-beta", |
Serge Bazanski | d01f9e5 | 2021-10-07 19:24:31 +0000 | [diff] [blame] | 328 | urls = ["https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0-beta.tar.gz"], |
Serge Bazanski | 1f06230 | 2021-06-01 22:24:34 +0000 | [diff] [blame] | 329 | ) |