-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathrepositories.bzl
More file actions
53 lines (46 loc) · 1.98 KB
/
Copy pathrepositories.bzl
File metadata and controls
53 lines (46 loc) · 1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""repositories for loading non bzlmod dependencies"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
def antlr4_jar_dependency():
http_jar(
name = "antlr4_jar",
sha256 = "eae2dfa119a64327444672aff63e9ec35a20180dc5b8090b7a6ab85125df4d76",
urls = ["https://www.antlr.org/download/antlr-4.13.2-complete.jar"],
)
def bazel_common_dependency():
bazel_common_tag = "aaa4d801588f7744c6f4428e4f133f26b8518f42"
bazel_common_sha = "1f85abb0043f3589b9bf13a80319dc48a5f01a052c68bab3c08015a56d92ab7f"
http_archive(
name = "bazel_common",
sha256 = bazel_common_sha,
strip_prefix = "bazel-common-%s" % bazel_common_tag,
url = "https://github.com/google/bazel-common/archive/%s.tar.gz" % bazel_common_tag,
)
def cel_policy_dependency():
cel_policy_tag = "e4c38defbbf34dfff2dc448dc58e93a9733ae8b1"
cel_policy_sha = "46378e0d17a16465899f9fefc94c3d44e1f40aedd8a31c9c0b2b6198048eabd6"
http_archive(
name = "cel_policy",
sha256 = cel_policy_sha,
strip_prefix = "cel-policy-%s" % cel_policy_tag,
url = "https://github.com/cel-expr/cel-policy/archive/%s.tar.gz" % cel_policy_tag,
)
def _non_module_dependencies_impl(_ctx):
antlr4_jar_dependency()
bazel_common_dependency()
cel_policy_dependency()
non_module_dependencies = module_extension(
implementation = _non_module_dependencies_impl,
)