use of org.gradle.api.internal.artifacts.dsl.dependencies.UnknownProjectFinder in project gradle by gradle.
the class DefaultProject method newDetachedResolver.
@Override
public DetachedResolver newDetachedResolver() {
DependencyManagementServices dms = getServices().get(DependencyManagementServices.class);
InstantiatorFactory instantiatorFactory = services.get(InstantiatorFactory.class);
DefaultServiceRegistry lookup = new DefaultServiceRegistry(services);
lookup.addProvider(new Object() {
public DependencyResolutionServices createServices() {
return dms.create(services.get(FileResolver.class), services.get(FileCollectionFactory.class), services.get(DependencyMetaDataProvider.class), new UnknownProjectFinder("Detached resolvers do not support resolving projects"), new DetachedDependencyResolutionDomainObjectContext(services.get(DomainObjectContext.class)));
}
});
return instantiatorFactory.decorate(lookup).newInstance(LocalDetachedResolver.class);
}
Aggregations