Search in sources :

Example 21 with ComponentSelector

use of org.gradle.api.artifacts.component.ComponentSelector in project gradle by gradle.

the class DefaultLibraryLocalComponentMetadata method binaryDependencyMetadata.

private LocalOriginDependencyMetadata binaryDependencyMetadata(LibraryBinaryDependencySpec binarySpec, String usageConfigurationName) {
    String projectPath = binarySpec.getProjectPath();
    String libraryName = binarySpec.getLibraryName();
    ComponentSelector selector = new DefaultLibraryComponentSelector(projectPath, libraryName, binarySpec.getVariant());
    return dependencyMetadataFor(selector, usageConfigurationName, usageConfigurationName);
}
Also used : ComponentSelector(org.gradle.api.artifacts.component.ComponentSelector) ModuleComponentSelector(org.gradle.api.artifacts.component.ModuleComponentSelector) DefaultLibraryComponentSelector(org.gradle.internal.component.local.model.DefaultLibraryComponentSelector) DefaultModuleComponentSelector(org.gradle.internal.component.external.model.DefaultModuleComponentSelector) DefaultLibraryComponentSelector(org.gradle.internal.component.local.model.DefaultLibraryComponentSelector)

Aggregations

ComponentSelector (org.gradle.api.artifacts.component.ComponentSelector)21 ModuleComponentSelector (org.gradle.api.artifacts.component.ModuleComponentSelector)9 UnresolvedDependencyResult (org.gradle.api.artifacts.result.UnresolvedDependencyResult)5 ArrayList (java.util.ArrayList)4 List (java.util.List)4 ModuleVersionIdentifier (org.gradle.api.artifacts.ModuleVersionIdentifier)4 DefaultProjectComponentSelector (org.gradle.internal.component.local.model.DefaultProjectComponentSelector)4 File (java.io.File)3 ModuleVersionSelector (org.gradle.api.artifacts.ModuleVersionSelector)3 DependencyResult (org.gradle.api.artifacts.result.DependencyResult)3 ResolvedDependencyResult (org.gradle.api.artifacts.result.ResolvedDependencyResult)3 DefaultModuleComponentSelector (org.gradle.internal.component.external.model.DefaultModuleComponentSelector)3 JarDependency (com.android.builder.dependency.JarDependency)2 LibraryDependency (com.android.builder.dependency.LibraryDependency)2 MavenCoordinates (com.android.builder.model.MavenCoordinates)2 ImmutableList (com.google.common.collect.ImmutableList)2 HashSet (java.util.HashSet)2 UnresolvedDependency (org.gradle.api.artifacts.UnresolvedDependency)2 ComponentIdentifier (org.gradle.api.artifacts.component.ComponentIdentifier)2 ModuleComponentIdentifier (org.gradle.api.artifacts.component.ModuleComponentIdentifier)2