Search in sources :

Example 6 with LibraryBinaryIdentifier

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);
}
Also used : DependentBinariesResolvedResult(org.gradle.platform.base.internal.dependents.DependentBinariesResolvedResult) LibraryBinaryIdentifier(org.gradle.api.artifacts.component.LibraryBinaryIdentifier)

Aggregations

LibraryBinaryIdentifier (org.gradle.api.artifacts.component.LibraryBinaryIdentifier)6 DefaultLibraryBinaryIdentifier (org.gradle.internal.component.local.model.DefaultLibraryBinaryIdentifier)3 Collection (java.util.Collection)1 BuildIdentifier (org.gradle.api.artifacts.component.BuildIdentifier)1 ModuleComponentIdentifier (org.gradle.api.artifacts.component.ModuleComponentIdentifier)1 ProjectComponentIdentifier (org.gradle.api.artifacts.component.ProjectComponentIdentifier)1 MavenUniqueSnapshotComponentIdentifier (org.gradle.api.internal.artifacts.repositories.resolver.MavenUniqueSnapshotComponentIdentifier)1 DefaultModuleComponentIdentifier (org.gradle.internal.component.external.model.DefaultModuleComponentIdentifier)1 DefaultProjectComponentIdentifier (org.gradle.internal.component.local.model.DefaultProjectComponentIdentifier)1 JvmBinarySpec (org.gradle.jvm.JvmBinarySpec)1 JarBinarySpecInternal (org.gradle.jvm.internal.JarBinarySpecInternal)1 JvmBinarySpecInternal (org.gradle.jvm.internal.JvmBinarySpecInternal)1 JvmLibraryResolveContext (org.gradle.jvm.internal.resolve.JvmLibraryResolveContext)1 JavaPlatform (org.gradle.jvm.platform.JavaPlatform)1 DefaultJavaPlatform (org.gradle.jvm.platform.internal.DefaultJavaPlatform)1 Binary (org.gradle.platform.base.Binary)1 BinarySpec (org.gradle.platform.base.BinarySpec)1 DependencySpec (org.gradle.platform.base.DependencySpec)1 BinarySpecInternal (org.gradle.platform.base.internal.BinarySpecInternal)1 DefaultLibraryBinaryDependencySpec (org.gradle.platform.base.internal.DefaultLibraryBinaryDependencySpec)1