From c6e655b72830c9e902729e88d7b74dfd0f36408a Mon Sep 17 00:00:00 2001 From: Googler Date: Thu, 8 Dec 2022 01:09:16 -0800 Subject: [PATCH] Refactor java_binary rule attributes in preparation for java_test PiperOrigin-RevId: 493824140 Change-Id: I0adb22a9e51c4e4da91c28166fc95b89783d8b9c --- src/main/starlark/builtins_bzl/common/java/java_binary.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/starlark/builtins_bzl/common/java/java_binary.bzl b/src/main/starlark/builtins_bzl/common/java/java_binary.bzl index 6e33489c5f3534..6d13c7b381c1e2 100644 --- a/src/main/starlark/builtins_bzl/common/java/java_binary.bzl +++ b/src/main/starlark/builtins_bzl/common/java/java_binary.bzl @@ -520,6 +520,7 @@ BASIC_JAVA_BINARY_ATTRIBUTES = merge_attrs( "use_launcher": attr.bool(default = True), "env": attr.string_dict(), "classpath_resources": attr.label_list(allow_files = True), + "licenses": attr.license() if hasattr(attr, "license") else attr.string_list(), "_stub_template": attr.label( default = semantics.JAVA_STUB_TEMPLATE_LABEL, allow_single_file = True,