Package org.gradle.api.artifacts.result

Examples of org.gradle.api.artifacts.result.ResolutionResult


                        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);
        }
    }
View Full Code Here


        } catch (final Throwable e) {
            results.failed(new BrokenResolvedConfiguration(e, configuration), wrapException(e, configuration));
            return;
        }
        ResolvedConfiguration wrappedConfiguration = new ErrorHandlingResolvedConfiguration(results.getResolvedConfiguration(), configuration);
        ResolutionResult wrappedResult = new ErrorHandlingResolutionResult(results.getResolutionResult(), configuration);
        results.resolved(wrappedConfiguration, wrappedResult);
    }
View Full Code Here

    }

    public void completeConfiguration(Configuration configuration) {}

    public void render(Configuration configuration) throws IOException {
        ResolutionResult result = configuration.getIncoming().getResolutionResult();
        RenderableDependency root = new RenderableModuleResult(result.getRoot());
        renderNow(root);
    }
View Full Code Here

TOP

Related Classes of org.gradle.api.artifacts.result.ResolutionResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.