Skip to content

Commit 8ebd8ca

Browse files
Automated rollback of commit 02786e4.
PiperOrigin-RevId: 867464824
1 parent 02786e4 commit 8ebd8ca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bazel/private/java_lite_proto_library.bzl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# https://developers.google.com/open-source/licenses/bsd
77
"""A Starlark implementation of the java_lite_proto_library rule."""
88

9+
load("@rules_java//java/common:java_common.bzl", "java_common")
910
load("@rules_java//java/common:java_info.bzl", "JavaInfo")
1011
load("@rules_java//java/common:proguard_spec_info.bzl", "ProguardSpecInfo")
1112
load("//bazel/common:proto_common.bzl", "proto_common")
@@ -117,6 +118,9 @@ def _rule_impl(ctx):
117118
transitive_src_and_runtime_jars = depset(transitive = [dep[JavaProtoAspectInfo].jars for dep in ctx.attr.deps])
118119
transitive_runtime_jars = depset(transitive = [java_info.transitive_runtime_jars])
119120

121+
if hasattr(java_common, "add_constraints"):
122+
java_info = java_common.add_constraints(java_info, constraints = ["android"])
123+
120124
return [
121125
java_info,
122126
DefaultInfo(

0 commit comments

Comments
 (0)