public Configuration detachedConfiguration(Dependency... dependencies) { DetachedConfigurationsProvider detachedConfigurationsProvider = new DetachedConfigurationsProvider(); String name = DETACHED_CONFIGURATION_DEFAULT_NAME + detachedConfigurationDefaultNameCounter++; DefaultConfiguration detachedConfiguration = new DefaultConfiguration( name, name, detachedConfigurationsProvider, dependencyResolver, listenerManager, dependencyMetaDataProvider, new DefaultResolutionStrategy()); DomainObjectSet<Dependency> detachedDependencies = detachedConfiguration.getDependencies(); for (Dependency dependency : dependencies) { detachedDependencies.add(dependency.copy()); } detachedConfigurationsProvider.setTheOnlyConfiguration(detachedConfiguration); return detachedConfiguration; }
public void source(Object sources) { sourceSets.addAll(sourcesNotationParser.parseNotation(sources)); }
public void source(LanguageSourceSet sourceSet) { source.add(sourceSet); }