use of org.gradle.jvm.internal.JvmBinarySpecInternal in project gradle by gradle.
the class JvmTestSuiteBasePlugin method runtimeDependencies.
private static List<DependencySpec> runtimeDependencies(JvmTestSuiteBinarySpecInternal testBinary) {
List<DependencySpec> dependencies = Lists.newArrayList(testBinary.getDependencies());
JvmBinarySpec testedBinary = testBinary.getTestedBinary();
dependencies.add(DefaultLibraryBinaryDependencySpec.of(testBinary.getId()));
if (testedBinary != null) {
JvmBinarySpecInternal binary = (JvmBinarySpecInternal) testedBinary;
LibraryBinaryIdentifier id = binary.getId();
dependencies.add(DefaultLibraryBinaryDependencySpec.of(id));
}
addSourceSetSpecificDependencies(dependencies, testBinary.getSources());
addSourceSetSpecificDependencies(dependencies, testBinary.getTestSuite().getSources());
return dependencies;
}
Aggregations