Propagate JavaInfo.compile_jdeps argument to JavaCompilationArgsProvider.
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:
@@ -96,6 +96,10 @@ final class JavaInfoBuildHelper {
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();
