Skip to content

Commit

Permalink
[7.1.0] Add add_exports/add_opens to bazel java_binary deploy jars (#…
Browse files Browse the repository at this point in the history
…21270)

Also propagates these in the unstripped case, which presumably was
missed in unknown commit

Fixes: #21243
Commit
e16f11b

PiperOrigin-RevId: 605543271
Change-Id: I57bc46074a289fa584acab147e11228e9dcf3eee

Co-authored-by: Googler <hvd@google.com>
  • Loading branch information
bazel-io and hvadehra authored Feb 9, 2024
1 parent a91fce1 commit c5f9c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def _bazel_deploy_jars_impl(ctx):
info.strip_as_default,
build_info_files,
str(ctx.attr.binary.label),
add_exports = info.add_exports,
add_opens = info.add_opens,
manifest_lines = info.manifest_lines,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def create_deploy_archives(
output = ctx.outputs.unstrippeddeployjar,
multi_release = multi_release,
hermetic = hermetic,
add_exports = add_exports,
add_opens = add_opens,
extra_args = extra_args,
)
else:
Expand Down

0 comments on commit c5f9c86

Please sign in to comment.