GlobalDependencyResolutionRules metadataHandler,
ResolverResults results) throws ResolveException {
if (configuration.getAllDependencies().isEmpty()) {
ModuleVersionIdentifier id = DefaultModuleVersionIdentifier.newId(configuration.getModule());
ComponentIdentifier componentIdentifier = componentIdentifierFactory.createComponentIdentifier(configuration.getModule());
ResolutionResult emptyResult = new DefaultResolutionResultBuilder().start(id, componentIdentifier).complete();
results.resolved(new EmptyResolvedConfiguration(), emptyResult);
} else {
dependencyResolver.resolve(configuration, repositories, metadataHandler, results);
}
}