Skip to content

Commit

Permalink
Propagate JavaInfo.compile_jdeps argument to JavaCompilationArgsProvi…
Browse files Browse the repository at this point in the history
…der.

JavaInfo.compile_jdeps parameter is a substitution for java_common.add_compile_time_jdeps. The latter is going to be removed from the Bazel, so the tests are updated to use the new APIs. Problem with propagation is fixed.

Design doc: https://docs.google.com/document/d/10isTEK5W9iCPp4BIyGBrLY5iti3Waaam6EeGVSjq3r8/edit#bookmark=id.vta5s12rfsxt

PiperOrigin-RevId: 368167400
  • Loading branch information
comius authored and copybara-github committed Apr 13, 2021
1 parent 3d060fc commit 274c3f4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ JavaInfo createJavaInfo(
javaCompilationArgsBuilder.addDirectCompileTimeJar(
/* interfaceJar= */ javaOutput.getCompileJar(), /* fullJar= */ javaOutput.getClassJar());
}
if (javaOutput.getCompileJdeps() != null) {
javaCompilationArgsBuilder.addCompileTimeJavaDependencyArtifacts(
NestedSetBuilder.create(Order.STABLE_ORDER, javaOutput.getCompileJdeps()));
}

JavaRuleOutputJarsProvider javaRuleOutputJarsProvider =
JavaRuleOutputJarsProvider.builder().addJavaOutput(javaOutput).build();
Expand Down

0 comments on commit 274c3f4

Please sign in to comment.