Skip to content

Commit

Permalink
Flip Automatic Exec Groups inside java_library
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 516808534
Change-Id: I232fe94137498c4c83deecabee40a4e3146da0db
  • Loading branch information
kotlaja authored and copybara-github committed Mar 15, 2023
1 parent f556833 commit f548d56
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ def android_lint_action(ctx, source_files, source_jars, compilation_info):
tools = tools,
arguments = args_list,
execution_requirements = {"supports-workers": "1"},
toolchain = semantics.JAVA_TOOLCHAIN_TYPE,
)
return android_lint_out
5 changes: 4 additions & 1 deletion src/main/starlark/builtins_bzl/common/java/java_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ JAVA_LIBRARY_ATTRS = merge_attrs(

java_library = rule(
_proxy,
attrs = JAVA_LIBRARY_ATTRS,
attrs = merge_attrs(
JAVA_LIBRARY_ATTRS,
{"_use_auto_exec_groups": attr.bool(default = True)},
),
provides = [JavaInfo],
outputs = {
"classjar": "lib%{name}.jar",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def _validate_spec(ctx, spec_file):
arguments = [args],
inputs = [spec_file],
outputs = [validated_proguard_spec],
toolchain = Label(semantics.JAVA_TOOLCHAIN_TYPE),
)

return validated_proguard_spec
Expand Down

0 comments on commit f548d56

Please sign in to comment.