-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathrepositories.bzl
More file actions
42 lines (36 loc) · 1.55 KB
/
repositories.bzl
File metadata and controls
42 lines (36 loc) · 1.55 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
# 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 _non_module_dependencies_impl(_ctx):
antlr4_jar_dependency()
bazel_common_dependency()
non_module_dependencies = module_extension(
implementation = _non_module_dependencies_impl,
)