use of org.gradle.internal.component.local.model.BuildableLocalConfigurationMetadata in project gradle by gradle.
the class DefaultIvyModulePublishMetadata method addConfiguration.
public BuildableLocalConfigurationMetadata addConfiguration(String name, Set<String> extendsFrom, boolean visible, boolean transitive) {
List<String> sortedExtends = Lists.newArrayList(extendsFrom);
Collections.sort(sortedExtends);
Configuration configuration = new Configuration(name, transitive, visible, sortedExtends);
configurations.put(name, configuration);
return new ConfigurationMetadata(name);
}
use of org.gradle.internal.component.local.model.BuildableLocalConfigurationMetadata in project gradle by gradle.
the class DefaultArtifactPublisher method addConfigurations.
private void addConfigurations(DefaultIvyModulePublishMetadata metaData, Collection<? extends ConfigurationInternal> configurations, boolean validateArtifacts) {
for (ConfigurationInternal configuration : configurations) {
BuildableLocalConfigurationMetadata configurationMetadata = addConfiguration(metaData, configuration);
dependenciesConverter.addDependenciesAndExcludes(configurationMetadata, configuration);
OutgoingVariant outgoingVariant = configuration.convertToOutgoingVariant();
for (PublishArtifact publishArtifact : outgoingVariant.getArtifacts()) {
if (!validateArtifacts || isValidToPublish(publishArtifact)) {
metaData.addArtifact(configuration.getName(), publishArtifact);
}
}
}
}
Aggregations