Skip to content

Commit

Permalink
Add add_exports/add_opens to bazel java_binary deploy jars
Browse files Browse the repository at this point in the history
Also propagates these in the unstripped case, which presumably was missed in unknown commit

Fixes: #21243
PiperOrigin-RevId: 605543271
Change-Id: I57bc46074a289fa584acab147e11228e9dcf3eee
  • Loading branch information
hvadehra authored and copybara-github committed Feb 9, 2024
1 parent b7340f5 commit e16f11b
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 @@ -47,6 +47,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 @@ -118,6 +118,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 e16f11b

Please sign in to comment.