Skip to content

Commit

Permalink
Expose correct symbols from Blaze
Browse files Browse the repository at this point in the history
BEGIN_PUBLIC
Internal change
END_PUBLIC

PiperOrigin-RevId: 666314384
Change-Id: Id5c5ac6b9a729465a43ce2218c4ab6584940c966
  • Loading branch information
comius authored and copybara-github committed Aug 22, 2024
1 parent ca8565f commit 18e8c3b
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions java/private/proto_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,9 @@
# limitations under the License.
"""Support for Java compilation of protocol buffer generated code."""

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

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.

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

0 comments on commit 18e8c3b

Please sign in to comment.