Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace output_jar with output_sources_jar in java_common.pack_sources #1314

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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