use of com.typelead.gradle.eta.api.EtaDependency in project gradle-eta by typelead.
the class DefaultEtaConfiguration method getAllArtifacts.
@Override
public Set<Provider<File>> getAllArtifacts(final Project project) {
Set<Provider<File>> allArtifacts = new LinkedHashSet<Provider<File>>();
allArtifacts.addAll(artifacts);
for (EtaDependency dependency : getDependencies()) {
if (dependency instanceof EtaProjectDependency) {
final EtaProjectDependency projectDependency = ((EtaProjectDependency) dependency);
final EtaConfiguration etaConfiguration = ConfigurationUtils.getEtaConfiguration(projectDependency.getProject(project), projectDependency.getTargetConfiguration());
if (etaConfiguration != null) {
allArtifacts.addAll(etaConfiguration.getAllArtifacts(project));
}
}
}
for (Configuration configuration : parentConfiguration.getExtendsFrom()) {
final EtaConfiguration etaConfiguration = ExtensionHelper.getExtension(configuration, EtaConfiguration.class);
allArtifacts.addAll(etaConfiguration.getAllArtifacts(project));
}
return allArtifacts;
}
Aggregations