Skip to content

Commit

Permalink
Replace output_jar with output_sources_jar in java_common.pack_sources (
Browse files Browse the repository at this point in the history
  • Loading branch information
comius authored Nov 5, 2021
1 parent fd997e6 commit 2894ca2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scala/private/phases/phase_compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,12 @@ def _create_scala_compilation_provider(ctx, ijar, source_jar, deps_providers):
)

def _pack_source_jar(ctx, scala_srcs, in_srcjars):
output_jar = ctx.outputs.jar
source_jar_name = output_jar.basename[:-len(output_jar.extension)] + "-src.jar"
output_source_jar = ctx.actions.declare_file(source_jar_name, sibling = output_jar)
return java_common.pack_sources(
ctx.actions,
output_jar = ctx.outputs.jar,
output_source_jar = output_source_jar,
sources = scala_srcs,
source_jars = in_srcjars,
java_toolchain = find_java_toolchain(ctx, ctx.attr._java_toolchain),
Expand Down

0 comments on commit 2894ca2

Please sign in to comment.