use of org.gradle.api.artifacts.component.LibraryBinaryIdentifier in project gradle by gradle.
the class DependentComponentsRenderableDependency method of.
public static DependentComponentsRenderableDependency of(DependentBinariesResolvedResult resolvedResult) {
LibraryBinaryIdentifier id = resolvedResult.getId();
String name = DependentComponentsUtils.getBuildScopedTerseName(id);
String description = id.getDisplayName();
boolean buildable = resolvedResult.isBuildable();
boolean testSuite = resolvedResult.isTestSuite();
LinkedHashSet<DependentComponentsRenderableDependency> children = Sets.newLinkedHashSet();
for (DependentBinariesResolvedResult childResolutionResult : resolvedResult.getChildren()) {
children.add(of(childResolutionResult));
}
return new DependentComponentsRenderableDependency(id, name, description, buildable, testSuite, children);
}
Aggregations