diff --git a/src/main/starlark/builtins_bzl/common/java/java_binary_deploy_jar.bzl b/src/main/starlark/builtins_bzl/common/java/java_binary_deploy_jar.bzl index 30ff3ad7e9ec26..8ff90684698574 100644 --- a/src/main/starlark/builtins_bzl/common/java/java_binary_deploy_jar.bzl +++ b/src/main/starlark/builtins_bzl/common/java/java_binary_deploy_jar.bzl @@ -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: @@ -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, )