use of com.typelead.gradle.eta.internal.DefaultEtaProjectDependency 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);
Set<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