Skip to content

Commit 18e8c3b

Browse files
comiuscopybara-github
authored andcommitted
Expose correct symbols from Blaze
BEGIN_PUBLIC Internal change END_PUBLIC PiperOrigin-RevId: 666314384 Change-Id: Id5c5ac6b9a729465a43ce2218c4ab6584940c966
1 parent ca8565f commit 18e8c3b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

java/private/proto_support.bzl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@
1313
# limitations under the License.
1414
"""Support for Java compilation of protocol buffer generated code."""
1515

16-
load("//java/private:native.bzl", "native_java_common")
16+
_legacy_api = _legacy_api_DO_NOT_USE_OR_ELSE()
1717

1818
visibility(["//third_party/protobuf/..."])
1919

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)
20+
compile = _legacy_api.java_compile_for_protos
21+
merge = _legacy_api.java_info_merge_for_protos

0 commit comments

Comments
 (0)