blob: f8554a1ac6310fc323653788d8e762209cb16c2f [file] [log] [blame]
Yun Peng3029a7d2023-06-07 07:40:12 -07001# Copyright 2023 The Bazel Authors. All rights reserved.
Ivo Listf259b8a2020-09-16 04:54:13 -07002#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Yun Peng3029a7d2023-06-07 07:40:12 -070015"""Redirect symbols from rules_java to keep backward-compatibility."""
Ivo Listf259b8a2020-09-16 04:54:13 -070016
Yun Peng3029a7d2023-06-07 07:40:12 -070017load("@rules_java//toolchains:local_java_repository.bzl", _local_java_repository = "local_java_repository", _local_java_runtime = "local_java_runtime")
Ivo Listba8d4042020-12-17 07:23:30 -080018
Yun Peng3029a7d2023-06-07 07:40:12 -070019def local_java_repository(name, **kwargs):
20 _local_java_repository(name, **kwargs)
Ivo Listba8d4042020-12-17 07:23:30 -080021 native.register_toolchains("@" + name + "//:runtime_toolchain_definition")
Fabian Meumertzheimf79ca022023-10-19 10:11:18 -070022 native.register_toolchains("@" + name + "//:bootstrap_runtime_toolchain_definition")
Yun Peng3029a7d2023-06-07 07:40:12 -070023
24local_java_runtime = _local_java_runtime