use of org.gradle.platform.base.internal.dependents.DependentBinariesResolutionResult in project gradle by gradle.
the class DependentComponentsRenderer method getRenderableDependencyOf.
private DependentComponentsRenderableDependency getRenderableDependencyOf(final ComponentSpec componentSpec, ComponentSpecInternal internalProtocol) {
if (resolver != null && componentSpec instanceof VariantComponentSpec) {
VariantComponentSpec variantComponentSpec = (VariantComponentSpec) componentSpec;
LinkedHashSet<DependentComponentsRenderableDependency> children = Sets.newLinkedHashSet();
for (BinarySpecInternal binarySpec : variantComponentSpec.getBinaries().withType(BinarySpecInternal.class)) {
DependentBinariesResolutionResult resolvedBinary = resolver.resolve(binarySpec);
children.add(DependentComponentsRenderableDependency.of(resolvedBinary.getRoot()));
}
return DependentComponentsRenderableDependency.of(componentSpec, internalProtocol, children);
} else {
return DependentComponentsRenderableDependency.of(componentSpec, internalProtocol);
}
}
Aggregations