Skip to content

Commit bd9c5f8

Browse files
aiutorules_java Copybara
authored andcommitted
Change type of output_licenses from attr.license to attr.string_list.
BEGIN_PUBLIC internal change END PUBLIC PiperOrigin-RevId: 751437233 Change-Id: I6b76f1005aab506dc4bdeb8993776525bdfd6812
1 parent 043d976 commit bd9c5f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

java/common/rules/java_package_configuration.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ Corresponds to javac's --system flag.
119119
""",
120120
),
121121
# buildifier: disable=attr-licenses
122-
"output_licenses": attr.license() if hasattr(attr, "license") else attr.string_list(),
122+
"output_licenses": attr.string_list(),
123123
},
124124
)

java/common/rules/java_plugin.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ from the annotation processor path using
4646
java.util.ServiceLoader</a>.)
4747
"""),
4848
# buildifier: disable=attr-licenses
49-
"output_licenses": attr.license() if hasattr(attr, "license") else attr.string_list(),
49+
"output_licenses": attr.string_list(),
5050
},
5151
remove_attrs = ["runtime_deps", "exports", "exported_plugins"],
5252
)

java/common/rules/java_runtime.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ The feature version of the Java runtime. I.e., the integer returned by
247247
""",
248248
),
249249
# buildifier: disable=attr-licenses
250-
"output_licenses": attr.license() if hasattr(attr, "license") else attr.string_list(),
250+
"output_licenses": attr.string_list(),
251251
"_windows_constraints": attr.label_list(
252252
default = [paths.join(semantics.PLATFORMS_ROOT, "os:windows")],
253253
),

0 commit comments

Comments
 (0)