|
| 1 | +# Copyright 2024 The Bazel Authors. All rights reserved. |
| 2 | +# |
| 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 | +"""Support for Java compilation of protocol buffer generated code.""" |
| 15 | + |
| 16 | +load("//java/private:native.bzl", "native_java_common") |
| 17 | + |
| 18 | +visibility(["//third_party/protobuf/..."]) |
| 19 | + |
| 20 | +# Partial support, because internal symbols are not available in older Bazel version |
| 21 | +# TODO: Once Java rules are moved into the rules_java, this should become a full support. |
| 22 | + |
| 23 | +def compile(*, injecting_rule_kind, enable_jspecify, include_compilation_info, **kwargs): # buildifier: disable=unused-variable |
| 24 | + return native_java_common.compile(**kwargs) |
| 25 | + |
| 26 | +def merge(providers, *, merge_java_outputs = True, merge_source_jars = True): # buildifier: disable=unused-variable |
| 27 | + return native_java_common.merge(providers) |
0 commit comments