1*abe8e1b9SSadaf Ebrahimi# Copyright 2022 The Bazel Authors. All rights reserved. 2*abe8e1b9SSadaf Ebrahimi# 3*abe8e1b9SSadaf Ebrahimi# Licensed under the Apache License, Version 2.0 (the "License"); 4*abe8e1b9SSadaf Ebrahimi# you may not use this file except in compliance with the License. 5*abe8e1b9SSadaf Ebrahimi# You may obtain a copy of the License at 6*abe8e1b9SSadaf Ebrahimi# 7*abe8e1b9SSadaf Ebrahimi# http://www.apache.org/licenses/LICENSE-2.0 8*abe8e1b9SSadaf Ebrahimi# 9*abe8e1b9SSadaf Ebrahimi# Unless required by applicable law or agreed to in writing, software 10*abe8e1b9SSadaf Ebrahimi# distributed under the License is distributed on an "AS IS" BASIS, 11*abe8e1b9SSadaf Ebrahimi# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*abe8e1b9SSadaf Ebrahimi# See the License for the specific language governing permissions and 13*abe8e1b9SSadaf Ebrahimi# limitations under the License. 14*abe8e1b9SSadaf Ebrahimi 15*abe8e1b9SSadaf Ebrahimi# Redefine native symbols with a new name as a workaround for 16*abe8e1b9SSadaf Ebrahimi# exporting them in `//third_party/bazel_rules/rules_proto/proto:defs.bzl` with their original name. 17*abe8e1b9SSadaf Ebrahimi# 18*abe8e1b9SSadaf Ebrahimi# While we cannot force users to load these symbol due to the lack of a 19*abe8e1b9SSadaf Ebrahimi# allowlisting mechanism, we can still export them and tell users to 20*abe8e1b9SSadaf Ebrahimi# load it to make a future migration to pure Starlark easier. 21*abe8e1b9SSadaf Ebrahimi 22*abe8e1b9SSadaf Ebrahimi"""Lovely workaround to be able to expose native constants pretending to be Starlark.""" 23*abe8e1b9SSadaf Ebrahimi 24*abe8e1b9SSadaf Ebrahimi# buildifier: disable=native-java 25*abe8e1b9SSadaf Ebrahiminative_java_common = java_common 26*abe8e1b9SSadaf Ebrahimi 27*abe8e1b9SSadaf Ebrahimi# buildifier: disable=native-java 28*abe8e1b9SSadaf EbrahimiNativeJavaInfo = JavaInfo 29*abe8e1b9SSadaf Ebrahimi 30*abe8e1b9SSadaf Ebrahimi# buildifier: disable=native-java 31*abe8e1b9SSadaf EbrahimiNativeJavaPluginInfo = JavaPluginInfo 32