use of org.gradle.internal.component.external.model.DefaultMutableIvyModuleResolveMetadata in project gradle by gradle.
the class IvyModuleResolveMetaDataBuilder method build.
public DefaultMutableIvyModuleResolveMetadata build() {
ModuleDescriptorState descriptorState = converter.forIvyModuleDescriptor(ivyDescriptor);
for (Artifact artifact : artifacts) {
descriptorState.addArtifact(artifact.getArtifactName(), artifact.getConfigurations());
}
List<Configuration> configurations = converter.extractConfigurations(ivyDescriptor);
List<IvyDependencyMetadata> dependencies = converter.extractDependencies(ivyDescriptor);
ModuleComponentIdentifier cid = descriptorState.getComponentIdentifier();
ModuleVersionIdentifier mvi = moduleIdentifierFactory.moduleWithVersion(cid.getGroup(), cid.getModule(), cid.getVersion());
return new DefaultMutableIvyModuleResolveMetadata(mvi, cid, descriptorState, configurations, dependencies);
}
Aggregations