File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 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" )
910load ("@rules_java//java/common:java_info.bzl" , "JavaInfo" )
1011load ("@rules_java//java/common:proguard_spec_info.bzl" , "ProguardSpecInfo" )
1112load ("//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 (
You can’t perform that action at this time.
0 commit comments