Package org.gradle.api.artifacts

Examples of org.gradle.api.artifacts.DependencySet


                .setTransitive(false)
                .setDescription("The SonarRunner configuration to use to run analysis")
                .getIncoming()
                .beforeResolve(new Action<ResolvableDependencies>() {
                    public void execute(ResolvableDependencies resolvableDependencies) {
                        DependencySet dependencies = resolvableDependencies.getDependencies();
                        if (dependencies.isEmpty()) {
                            String toolVersion = rootExtension.getToolVersion();
                            DependencyHandler dependencyHandler = project.getDependencies();
                            Dependency dependency = dependencyHandler.create("org.codehaus.sonar.runner:sonar-runner-dist:" + toolVersion);
                            configuration.getDependencies().add(dependency);
                        }
View Full Code Here


                .setVisible(false)
                .setDescription("The Antlr libraries to be used for this project.");

        antlrConfiguration.getIncoming().beforeResolve(new Action<ResolvableDependencies>() {
            public void execute(ResolvableDependencies resolvableDependencies) {
                DependencySet dependencies = antlrConfiguration.getDependencies();
                if (dependencies.isEmpty()) {
                    dependencies.add(project.getDependencies().create("antlr:antlr:2.7.7@jar"));
                }
            }
        });

        project.getConfigurations().getByName(COMPILE_CONFIGURATION_NAME).extendsFrom(antlrConfiguration);
View Full Code Here

        final Configuration configuration = project.getConfigurations().create(configurationName);
        configuration.setVisible(false);

        configuration.getIncoming().beforeResolve(new Action<ResolvableDependencies>() {
            public void execute(ResolvableDependencies resolvableDependencies) {
                DependencySet dependencies = configuration.getDependencies();
                if (dependencies.isEmpty()) {
                    dependencies.add(project.getDependencies().create(defaultDependency));
                }
            }
        });
        return configuration;
    }
View Full Code Here

TOP

Related Classes of org.gradle.api.artifacts.DependencySet

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.