Replaces deprecated closure repository load macro with the new one.
"""Macro to use for loading the J2CL repository"""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
-load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories")
+load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies")
load("@bazel_skylib//lib:versions.bzl", "versions")
def setup_j2cl_workspace():
@@ -9,7 +9,7 @@ def setup_j2cl_workspace():
versions.check("0.24.0") # The version J2CL currently have a CI setup for.
- closure_repositories(
+ rules_closure_dependencies(
omit_com_google_protobuf = True,
omit_com_google_auto_common = True,
)
