Sean Condon | 0a884ad | 2019-10-28 17:57:21 +0000 | [diff] [blame] | 1 | workspace( |
| 2 | name = "org_onosproject_onos", |
| 3 | managed_directories = { |
| 4 | "@gui1_npm": ["tools/gui/node_modules"], |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 5 | "@npm": ["web/gui2/node_modules"], |
Sean Condon | 0a884ad | 2019-10-28 17:57:21 +0000 | [diff] [blame] | 6 | }, |
| 7 | ) |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 8 | |
Thomas Vachuska | 46848a8 | 2018-08-13 14:32:05 -0700 | [diff] [blame] | 9 | load("//tools/build/bazel:bazel_version.bzl", "check_bazel_version") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 10 | |
Thomas Vachuska | 46848a8 | 2018-08-13 14:32:05 -0700 | [diff] [blame] | 11 | check_bazel_version() |
| 12 | |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 13 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 14 | |
| 15 | # It is necessary to explicitly load this version of bazel-skylib for the |
| 16 | # GUI build with native bazel e.g. ts_web_test_suite or ts_library. If not specified |
| 17 | # here an older version is pulled in by something else. It may be possible to update |
| 18 | # this once other tools are updated |
| 19 | BAZEL_SKYLIB_VERSION = "1.0.2" |
| 20 | |
| 21 | BAZEL_SKYLIB_SHA256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44" |
| 22 | |
| 23 | http_archive( |
| 24 | name = "bazel_skylib", |
| 25 | sha256 = BAZEL_SKYLIB_SHA256, |
| 26 | urls = [ |
| 27 | "https://github.com/bazelbuild/bazel-skylib/releases/download/%s/bazel-skylib-%s.tar.gz" % (BAZEL_SKYLIB_VERSION, BAZEL_SKYLIB_VERSION), |
| 28 | ], |
| 29 | ) |
| 30 | |
| 31 | load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| 32 | |
| 33 | bazel_skylib_workspace() |
| 34 | |
Thomas Vachuska | c4d0377 | 2018-11-26 10:53:58 -0800 | [diff] [blame] | 35 | load("//tools/build/bazel:local_jar.bzl", "local_atomix", "local_jar", "local_yang_tools") |
Thomas Vachuska | 9379a07 | 2018-08-21 14:19:02 -0700 | [diff] [blame] | 36 | |
| 37 | # Use this to build against locally built arbitrary 3rd party artifacts |
| 38 | #local_jar( |
| 39 | # name = "atomix", |
Thomas Vachuska | d389a6e | 2018-10-29 15:17:17 -0700 | [diff] [blame] | 40 | # path = "/Users/tom/atomix/core/target/atomix-3.0.8-SNAPSHOT.jar", |
Thomas Vachuska | 9379a07 | 2018-08-21 14:19:02 -0700 | [diff] [blame] | 41 | #) |
| 42 | |
| 43 | # Use this to build against locally built Atomix |
| 44 | #local_atomix( |
Thomas Vachuska | d389a6e | 2018-10-29 15:17:17 -0700 | [diff] [blame] | 45 | # path = "/Users/tom/atomix", |
| 46 | # version = "3.0.8-SNAPSHOT", |
Thomas Vachuska | 9379a07 | 2018-08-21 14:19:02 -0700 | [diff] [blame] | 47 | #) |
| 48 | |
Thomas Vachuska | c4d0377 | 2018-11-26 10:53:58 -0800 | [diff] [blame] | 49 | # Use this to build against locally built YANG tools |
| 50 | #local_yang_tools( |
| 51 | # path = "/Users/andrea/onos-yang-tools", |
| 52 | # version = "2.6-SNAPSHOT", |
| 53 | #) |
| 54 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 55 | load("//tools/build/bazel:generate_workspace.bzl", "generated_maven_jars") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 56 | |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 57 | generated_maven_jars() |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 58 | |
| 59 | load("//tools/build/bazel:protobuf_workspace.bzl", "generate_protobuf") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 60 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 61 | generate_protobuf() |
| 62 | |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 63 | load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| 64 | |
| 65 | protobuf_deps() |
| 66 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 67 | load("//tools/build/bazel:grpc_workspace.bzl", "generate_grpc") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 68 | |
Ray Milkey | 3077358 | 2018-07-26 15:52:23 -0700 | [diff] [blame] | 69 | generate_grpc() |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 70 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 71 | load("@io_grpc_grpc_java//:repositories.bzl", "grpc_java_repositories") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 72 | |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 73 | # We omit as many dependencies as we can and instead import the same via |
| 74 | # deps.json, so they get wrapped properly for Karaf runtime. |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 75 | grpc_java_repositories( |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 76 | omit_bazel_skylib = False, |
Ray Milkey | 0b67f5d | 2020-01-15 12:26:25 -0800 | [diff] [blame] | 77 | omit_com_google_android_annotations = True, |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 78 | omit_com_google_api_grpc_google_common_protos = True, |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 79 | omit_com_google_auth_google_auth_library_credentials = True, |
Carmelo Cascone | ef478a6 | 2019-01-29 18:45:22 -0800 | [diff] [blame] | 80 | omit_com_google_auth_google_auth_library_oauth2_http = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 81 | omit_com_google_code_findbugs_jsr305 = True, |
| 82 | omit_com_google_code_gson = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 83 | omit_com_google_errorprone_error_prone_annotations = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 84 | omit_com_google_guava = True, |
Ray Milkey | 0b67f5d | 2020-01-15 12:26:25 -0800 | [diff] [blame] | 85 | omit_com_google_guava_failureaccess = True, |
Carmelo Cascone | ef478a6 | 2019-01-29 18:45:22 -0800 | [diff] [blame] | 86 | omit_com_google_j2objc_j2objc_annotations = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 87 | omit_com_google_protobuf = True, |
| 88 | omit_com_google_protobuf_javalite = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 89 | omit_com_google_truth_truth = True, |
| 90 | omit_com_squareup_okhttp = True, |
| 91 | omit_com_squareup_okio = True, |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 92 | omit_io_grpc_grpc_proto = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 93 | omit_io_netty_buffer = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 94 | omit_io_netty_codec = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 95 | omit_io_netty_codec_http = True, |
| 96 | omit_io_netty_codec_http2 = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 97 | omit_io_netty_codec_socks = True, |
| 98 | omit_io_netty_common = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 99 | omit_io_netty_handler = True, |
| 100 | omit_io_netty_handler_proxy = True, |
| 101 | omit_io_netty_resolver = True, |
| 102 | omit_io_netty_tcnative_boringssl_static = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 103 | omit_io_netty_transport = True, |
| 104 | omit_io_opencensus_api = True, |
| 105 | omit_io_opencensus_grpc_metrics = True, |
Carmelo Cascone | cf6a828 | 2019-07-14 20:01:51 -0700 | [diff] [blame] | 106 | omit_io_perfmark = True, |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 107 | omit_javax_annotation = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 108 | omit_junit_junit = True, |
Carmelo Cascone | b953669 | 2019-05-28 18:15:23 -0700 | [diff] [blame] | 109 | omit_net_zlib = True, |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 110 | omit_org_apache_commons_lang3 = True, |
Ray Milkey | efb6cc5 | 2019-04-24 13:45:18 -0700 | [diff] [blame] | 111 | omit_org_codehaus_mojo_animal_sniffer_annotations = True, |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 112 | ) |
| 113 | |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 114 | load("//tools/build/bazel:p4lang_workspace.bzl", "generate_p4lang") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 115 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 116 | generate_p4lang() |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 117 | |
Yi Tseng | e671fc9 | 2018-10-31 15:34:30 -0700 | [diff] [blame] | 118 | load("//tools/build/bazel:gnmi_workspace.bzl", "generate_gnmi") |
| 119 | |
| 120 | generate_gnmi() |
| 121 | |
oleksandr.yashchuk@plvision.eu | 3dbcaaf | 2019-03-13 14:44:46 +0200 | [diff] [blame] | 122 | load("//tools/build/bazel:gnoi_workspace.bzl", "generate_gnoi") |
| 123 | |
| 124 | generate_gnoi() |
| 125 | |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 126 | # For GUI2 build |
Sean Condon | 6ceebf0 | 2020-01-24 09:03:03 +0000 | [diff] [blame] | 127 | RULES_NODEJS_VERSION = "1.1.0" |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 128 | |
Sean Condon | 6ceebf0 | 2020-01-24 09:03:03 +0000 | [diff] [blame] | 129 | RULES_NODEJS_SHA256 = "c97bf38546c220fa250ff2cc052c1a9eac977c662c1fc23eda797b0ce8e70a43" |
Ray Milkey | 973d11e | 2018-12-13 15:55:08 -0800 | [diff] [blame] | 130 | |
Thomas Vachuska | 13433eb | 2019-12-02 11:11:13 -0800 | [diff] [blame] | 131 | load("//tools/build/bazel:topo_workspace.bzl", "generate_topo_device") |
| 132 | |
| 133 | generate_topo_device() |
| 134 | |
Sean Condon | 0a884ad | 2019-10-28 17:57:21 +0000 | [diff] [blame] | 135 | http_archive( |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 136 | name = "build_bazel_rules_nodejs", |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 137 | sha256 = RULES_NODEJS_SHA256, |
| 138 | urls = [ |
| 139 | "https://github.com/bazelbuild/rules_nodejs/releases/download/%s/rules_nodejs-%s.tar.gz" % (RULES_NODEJS_VERSION, RULES_NODEJS_VERSION), |
| 140 | ], |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 141 | ) |
| 142 | |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 143 | # Rules for compiling sass |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 144 | RULES_SASS_VERSION = "1.24.0" |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 145 | |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 146 | RULES_SASS_SHA256 = "77e241148f26d5dbb98f96fe0029d8f221c6cb75edbb83e781e08ac7f5322c5f" |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 147 | |
| 148 | http_archive( |
| 149 | name = "io_bazel_rules_sass", |
| 150 | sha256 = RULES_SASS_SHA256, |
| 151 | strip_prefix = "rules_sass-%s" % RULES_SASS_VERSION, |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 152 | urls = [ |
| 153 | "https://github.com/bazelbuild/rules_sass/archive/%s.zip" % RULES_SASS_VERSION, |
| 154 | "https://mirror.bazel.build/github.com/bazelbuild/rules_sass/archive/%s.zip" % RULES_SASS_VERSION, |
| 155 | ], |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 156 | ) |
| 157 | |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 158 | load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "npm_install", "yarn_install") |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 159 | |
| 160 | # Setup the Node repositories. We need a NodeJS version that is more recent than v10.15.0 |
| 161 | # because "selenium-webdriver" which is required for "ng e2e" cannot be installed. |
Sean Condon | 2f1fb8d | 2018-08-31 16:05:02 +0100 | [diff] [blame] | 162 | node_repositories( |
Sean Condon | 0a884ad | 2019-10-28 17:57:21 +0000 | [diff] [blame] | 163 | node_repositories = { |
| 164 | "10.16.0-darwin_amd64": ("node-v10.16.0-darwin-x64.tar.gz", "node-v10.16.0-darwin-x64", "6c009df1b724026d84ae9a838c5b382662e30f6c5563a0995532f2bece39fa9c"), |
| 165 | "10.16.0-linux_amd64": ("node-v10.16.0-linux-x64.tar.xz", "node-v10.16.0-linux-x64", "1827f5b99084740234de0c506f4dd2202a696ed60f76059696747c34339b9d48"), |
| 166 | "10.16.0-windows_amd64": ("node-v10.16.0-win-x64.zip", "node-v10.16.0-win-x64", "aa22cb357f0fb54ccbc06b19b60e37eefea5d7dd9940912675d3ed988bf9a059"), |
| 167 | }, |
| 168 | node_version = "10.16.0", |
Sean Condon | 2f1fb8d | 2018-08-31 16:05:02 +0100 | [diff] [blame] | 169 | ) |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 170 | |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 171 | # TODO give this a name like `gui2_npm` once the @bazel/karma tools can tolerate a name other than `npm` |
| 172 | yarn_install( |
| 173 | name = "npm", |
Sean Condon | 8bba394 | 2020-01-08 09:22:00 +0000 | [diff] [blame] | 174 | args = ["--frozen-lockfile"], |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 175 | package_json = "//web/gui2:package.json", |
Sean Condon | 6b85be9 | 2020-01-05 23:04:18 +0000 | [diff] [blame] | 176 | use_global_yarn_cache = False, |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 177 | yarn_lock = "//web/gui2:yarn.lock", |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 178 | ) |
Sean Condon | 0a884ad | 2019-10-28 17:57:21 +0000 | [diff] [blame] | 179 | |
| 180 | npm_install( |
| 181 | # Name this npm so that Bazel Label references look like @npm//package |
| 182 | name = "gui1_npm", |
| 183 | package_json = "//tools/gui:package.json", |
| 184 | package_lock_json = "//tools/gui:package-lock.json", |
| 185 | ) |
| 186 | |
Sean Condon | 0a884ad | 2019-10-28 17:57:21 +0000 | [diff] [blame] | 187 | # Install any Bazel rules which were extracted earlier by the npm_install rule. |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 188 | # Versions are set in web/gui2-fw-lib/package.json |
| 189 | load("@npm//:install_bazel_dependencies.bzl", "install_bazel_dependencies") |
Sean Condon | 0a884ad | 2019-10-28 17:57:21 +0000 | [diff] [blame] | 190 | |
| 191 | install_bazel_dependencies() |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 192 | |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 193 | RULES_WEBTESTING_VERSION = "0.3.3" |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 194 | |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 195 | RULES_WEBTESTING_SHA256 = "9bb461d5ef08e850025480bab185fd269242d4e533bca75bfb748001ceb343c3" |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 196 | |
| 197 | http_archive( |
| 198 | name = "io_bazel_rules_webtesting", |
| 199 | sha256 = RULES_WEBTESTING_SHA256, |
| 200 | urls = [ |
| 201 | "https://github.com/bazelbuild/rules_webtesting/releases/download/%s/rules_webtesting.tar.gz" % RULES_WEBTESTING_VERSION, |
| 202 | ], |
| 203 | ) |
| 204 | |
| 205 | load("//tools/build/bazel:angular_workspace.bzl", "load_angular") |
| 206 | |
| 207 | load_angular() |
| 208 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 209 | # buildifier is written in Go and hence needs rules_go to be built. |
| 210 | # See https://github.com/bazelbuild/rules_go for the up to date setup instructions. |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 211 | RULES_GO_VERSION = "v0.19.8" |
| 212 | |
| 213 | RULES_GO_SHA256 = "9976c2572587aa71f81b502cc870ef8058f6de37f5fcfaade6a5996934b4a324" |
| 214 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 215 | http_archive( |
| 216 | name = "io_bazel_rules_go", |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 217 | sha256 = RULES_GO_SHA256, |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 218 | urls = [ |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 219 | "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/%s/rules_go-%s.tar.gz" % (RULES_GO_VERSION, RULES_GO_VERSION), |
| 220 | "https://github.com/bazelbuild/rules_go/releases/download/%s/rules_go-%s.tar.gz" % (RULES_GO_VERSION, RULES_GO_VERSION), |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 221 | ], |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 222 | ) |
| 223 | |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 224 | load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") |
| 225 | |
| 226 | go_rules_dependencies() |
| 227 | |
| 228 | go_register_toolchains() |
| 229 | |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 230 | GAZELLE_VERSION = "0.18.1" |
| 231 | |
| 232 | GAZELLE_SHA256 = "be9296bfd64882e3c08e3283c58fcb461fa6dd3c171764fcc4cf322f60615a9b" |
| 233 | |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 234 | http_archive( |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 235 | name = "bazel_gazelle", |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 236 | sha256 = GAZELLE_SHA256, |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 237 | urls = [ |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 238 | "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/%s/bazel-gazelle-%s.tar.gz" % (GAZELLE_VERSION, GAZELLE_VERSION), |
| 239 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/%s/bazel-gazelle-%s.tar.gz" % (GAZELLE_VERSION, GAZELLE_VERSION), |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 240 | ], |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 241 | ) |
| 242 | |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 243 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
Ray Milkey | 5063f5b | 2018-08-15 16:22:30 -0700 | [diff] [blame] | 244 | |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 245 | gazelle_dependencies() |
| 246 | |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 247 | BUILDTOOLS_VERSION = "0.29.0" |
| 248 | |
| 249 | BUILDTOOLS_SHA256 = "05eb52437fb250c7591dd6cbcfd1f9b5b61d85d6b20f04b041e0830dd1ab39b3" |
| 250 | |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 251 | http_archive( |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 252 | name = "com_github_bazelbuild_buildtools", |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 253 | sha256 = BUILDTOOLS_SHA256, |
| 254 | strip_prefix = "buildtools-" + BUILDTOOLS_VERSION, |
| 255 | url = "https://github.com/bazelbuild/buildtools/archive/%s.zip" % BUILDTOOLS_VERSION, |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 256 | ) |