Search in sources :

Example 1 with ModuleDependencySpec

use of org.gradle.platform.base.ModuleDependencySpec in project gradle by gradle.

the class DefaultLibraryLocalComponentMetadata method addDependency.

private void addDependency(DependencySpec dependency, String defaultProject, String usageConfigurationName) {
    LocalOriginDependencyMetadata metadata = dependency instanceof ModuleDependencySpec ? moduleDependencyMetadata((ModuleDependencySpec) dependency, usageConfigurationName) : dependency instanceof ProjectDependencySpec ? projectDependencyMetadata((ProjectDependencySpec) dependency, defaultProject, usageConfigurationName) : binaryDependencyMetadata((LibraryBinaryDependencySpec) dependency, usageConfigurationName);
    addDependency(metadata);
}
Also used : ModuleDependencySpec(org.gradle.platform.base.ModuleDependencySpec) ProjectDependencySpec(org.gradle.platform.base.ProjectDependencySpec) LocalOriginDependencyMetadata(org.gradle.internal.component.model.LocalOriginDependencyMetadata)

Aggregations

LocalOriginDependencyMetadata (org.gradle.internal.component.model.LocalOriginDependencyMetadata)1 ModuleDependencySpec (org.gradle.platform.base.ModuleDependencySpec)1 ProjectDependencySpec (org.gradle.platform.base.ProjectDependencySpec)1