@@ -2,20 +2,24 @@ workspace(name = "io_bazel_rules_scala")
22
33load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
44
5- skylib_version = "1.0.3"
6-
75http_archive (
86 name = "bazel_skylib" ,
9- sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c" ,
10- type = "tar.gz" ,
11- url = "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel-skylib-{}.tar.gz" .format (skylib_version , skylib_version ),
7+ sha256 = "b8a1527901774180afc798aeb28c4634bdccf19c4d98e7bdd1ce79d1fe9aaad7" ,
8+ urls = [
9+ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz" ,
10+ "https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.1/bazel-skylib-1.4.1.tar.gz" ,
11+ ],
1212)
1313
14- _build_tools_release = "3.5.0"
14+ load ("@bazel_skylib//:workspace.bzl" , "bazel_skylib_workspace" )
15+
16+ bazel_skylib_workspace ()
17+
18+ _build_tools_release = "5.1.0"
1519
1620http_archive (
1721 name = "com_github_bazelbuild_buildtools" ,
18- sha256 = "a02ba93b96a8151b5d8d3466580f6c1f7e77212c4eb181cba53eb2cae7752a23 " ,
22+ sha256 = "e3bb0dc8b0274ea1aca75f1f8c0c835adbe589708ea89bf698069d0790701ea3 " ,
1923 strip_prefix = "buildtools-%s" % _build_tools_release ,
2024 url = "https://github.com/bazelbuild/buildtools/archive/%s.tar.gz" % _build_tools_release ,
2125)
@@ -123,10 +127,10 @@ format_repositories()
123127
124128http_archive (
125129 name = "io_bazel_rules_go" ,
126- sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566 " ,
130+ sha256 = "dd926a88a564a9246713a9c00b35315f54cbd46b31a26d5d8fb264c07045f05d " ,
127131 urls = [
128- "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.5 /rules_go-v0.24.5.tar.gz " ,
129- "https://github.com/bazelbuild/rules_go/releases/download/v0.24.5 /rules_go-v0.24.5.tar.gz " ,
132+ "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.38.1 /rules_go-v0.38.1.zip " ,
133+ "https://github.com/bazelbuild/rules_go/releases/download/v0.38.1 /rules_go-v0.38.1.zip " ,
130134 ],
131135)
132136
@@ -138,7 +142,7 @@ load(
138142
139143go_rules_dependencies ()
140144
141- go_register_toolchains ()
145+ go_register_toolchains (version = "1.19.5" )
142146
143147# Explicitly pull in a different (newer) version of rules_java for remote jdks
144148rules_java_extra_version = "5.1.0"
@@ -159,28 +163,18 @@ load("@rules_java//java:repositories.bzl", "remote_jdk8_repos")
159163# https://github.com/bazelbuild/bazel/issues/11655
160164remote_jdk8_repos ()
161165
162- bazel_toolchains_version = "4.1.0"
163-
164166http_archive (
165- name = "bazel_toolchains" ,
166- sha256 = "179ec02f809e86abf56356d8898c8bd74069f1bd7c56044050c2cd3d79d0e024" ,
167- strip_prefix = "bazel-toolchains-%s" % bazel_toolchains_version ,
168- urls = [
169- "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/%s/bazel-toolchains-%s.tar.gz" % (bazel_toolchains_version , bazel_toolchains_version ),
170- "https://github.com/bazelbuild/bazel-toolchains/releases/download/%s/bazel-toolchains-%s.tar.gz" % (bazel_toolchains_version , bazel_toolchains_version ),
171- ],
167+ name = "bazelci_rules" ,
168+ sha256 = "eca21884e6f66a88c358e580fd67a6b148d30ab57b1680f62a96c00f9bc6a07e" ,
169+ strip_prefix = "bazelci_rules-1.0.0" ,
170+ url = "https://github.com/bazelbuild/continuous-integration/releases/download/rules-1.0.0/bazelci_rules-1.0.0.tar.gz" ,
172171)
173172
174- load ("@bazel_skylib//:workspace.bzl" , "bazel_skylib_workspace" )
175-
176- bazel_skylib_workspace ()
177-
178- load ("@bazel_toolchains//rules:rbe_repo.bzl" , "rbe_autoconfig" )
173+ load ("@bazelci_rules//:rbe_repo.bzl" , "rbe_preconfig" )
179174
180- # Creates toolchain configuration for remote execution with BuildKite CI
181- # for rbe_ubuntu1604
182- rbe_autoconfig (
183- name = "buildkite_config" ,
175+ rbe_preconfig (
176+ name = "rbe_default" ,
177+ toolchain = "ubuntu2004-bazel-java11" ,
184178)
185179
186180load ("//third_party/repositories:repositories.bzl" , "repositories" )
0 commit comments