Skip to content

Commit

Permalink
Merge pull request #40 from lucidsoftware/deprecations
Browse files Browse the repository at this point in the history
Fix deprecated options in pack_sources
  • Loading branch information
tmccombs authored Sep 20, 2023
2 parents f2ab6e0 + 138f5ea commit d396b91
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions rules/private/phases/phase_javainfo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,16 @@ def phase_javainfo(ctx, g):
java_toolchain = find_java_toolchain(ctx, ctx.attr._java_toolchain),
)

source_jar_name = ctx.outputs.jar.basename.replace(".jar", "-src.jar")
output_source_jar = ctx.actions.declare_file(
source_jar_name,
sibling = ctx.outputs.jar,
)

source_jar = java_common.pack_sources(
ctx.actions,
output_jar = ctx.outputs.jar,
output_source_jar = output_source_jar,
sources = ctx.files.srcs,
host_javabase = find_java_runtime_toolchain(ctx, ctx.attr._host_javabase),
java_toolchain = find_java_toolchain(ctx, ctx.attr._java_toolchain),
)

Expand Down

0 comments on commit d396b91

Please sign in to comment.