use of org.gradle.jvm.JvmBinarySpec 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;
}
use of org.gradle.jvm.JvmBinarySpec in project gradle by gradle.
the class JvmTestSuiteBinaryRenderer method renderDetails.
@Override
protected void renderDetails(T binary, TextReportBuilder builder) {
JvmTestSuiteSpec testSuite = binary.getTestSuite();
JvmComponentSpec testedComponent = testSuite.getTestedComponent();
if (testedComponent != null) {
builder.item("component under test", testedComponent.getDisplayName());
}
JvmBinarySpec testedBinary = binary.getTestedBinary();
if (testedBinary != null) {
builder.item("binary under test", testedBinary.getDisplayName());
}
super.renderDetails(binary, builder);
}
Aggregations