Skip to content

Commit

Permalink
Parameterize deploy jar rule to make it a test rule
Browse files Browse the repository at this point in the history
This is needed since the deploy jar rule will depend on the java_test rule

PiperOrigin-RevId: 493824662
Change-Id: I50a4b0b74a5d9b6bdb8aa48fae7d9485e5b59e90
  • Loading branch information
hvadehra authored and copybara-github committed Dec 8, 2022
1 parent c6e655b commit 87437fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def _implicit_outputs(name):
"unstrippeddeployjar": "%s_deploy.jar.unstripped" % actual_name,
}

def make_deploy_jars_rule(implementation):
def make_deploy_jars_rule(implementation, test = False):
"""Creates the deploy jar auxiliary rule for java_binary
Args:
Expand All @@ -251,4 +251,5 @@ def make_deploy_jars_rule(implementation):
outputs = _implicit_outputs,
fragments = ["java"],
toolchains = [semantics.JAVA_TOOLCHAIN, semantics.JAVA_RUNTIME_TOOLCHAIN] + cc_helper.use_cpp_toolchain(),
test = test,
)

0 comments on commit 87437fd

Please sign in to comment.