Skip to content

Commit

Permalink
Revert 18e8c3b
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 666698763
Change-Id: Ied733f052b47f6e869353c4126307576e4155598
  • Loading branch information
hvadehra authored and copybara-github committed Aug 23, 2024
1 parent 18e8c3b commit e1d7466
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 29 deletions.
12 changes: 8 additions & 4 deletions java/private/proto_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@
# limitations under the License.
"""Support for Java compilation of protocol buffer generated code."""

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

visibility(["//third_party/protobuf/..."])
# Partial support, because internal symbols are not available in older Bazel version
# TODO: Once Java rules are moved into the rules_java, this should become a full support.

compile = _legacy_api.java_compile_for_protos
merge = _legacy_api.java_info_merge_for_protos
def compile(*, injecting_rule_kind, enable_jspecify, include_compilation_info, **kwargs): # buildifier: disable=unused-variable
return native_java_common.compile(**kwargs)

def merge(providers, *, merge_java_outputs = True, merge_source_jars = True): # buildifier: disable=unused-variable
return native_java_common.merge(providers)
25 changes: 0 additions & 25 deletions java/private/proto_support.bzl.oss

This file was deleted.

0 comments on commit e1d7466

Please sign in to comment.