use of com.typelead.gradle.eta.internal.DefaultEtaConfiguration in project gradle-eta by typelead.
the class EtaBasePlugin method populateEtaConfiguration.
private void populateEtaConfiguration(final Configuration configuration) {
final DefaultEtaConfiguration etaConfiguration = ExtensionHelper.createExtension(configuration, ETA_CONFIGURATION_EXTENSION_NAME, DefaultEtaConfiguration.class, configuration, mavenRepository);
DomainObjectCollection<EtaDependency> dependencies = etaConfiguration.getDependencies();
configuration.getDependencies().all(dependency -> {
if (dependency instanceof ProjectDependency) {
final ProjectDependency projectDependency = (ProjectDependency) dependency;
dependencies.add(new DefaultEtaProjectDependency(projectDependency.getDependencyProject(), projectDependency.getTargetConfiguration()));
} else if (dependency instanceof EtaDependency) {
dependencies.add((EtaDependency) dependency);
}
});
}
Aggregations