Java Code Examples for org.gradle.api.internal.project.ProjectInternal#getConfigurations()

The following examples show how to use org.gradle.api.internal.project.ProjectInternal#getConfigurations() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MavenPlugin.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void apply(final ProjectInternal project) {
    this.project = project;
    project.getPlugins().apply(BasePlugin.class);

    DefaultMavenFactory mavenFactory = new DefaultMavenFactory();
    final MavenPluginConvention pluginConvention = addConventionObject(project, mavenFactory);
    final DefaultDeployerFactory deployerFactory = new DefaultDeployerFactory(
            mavenFactory,
            loggingManagerFactory,
            fileResolver,
            pluginConvention,
            project.getConfigurations(),
            pluginConvention.getConf2ScopeMappings());

    configureUploadTasks(deployerFactory);
    configureUploadArchivesTask();

    PluginContainer plugins = project.getPlugins();
    plugins.withType(JavaPlugin.class, new Action<JavaPlugin>() {
        public void execute(JavaPlugin javaPlugin) {
            configureJavaScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
            configureInstall(project);
        }
    });
    plugins.withType(WarPlugin.class, new Action<WarPlugin>() {
        public void execute(WarPlugin warPlugin) {
            configureWarScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
        }
    });
}
 
Example 2
Source File: MavenPlugin.java    From pushfish-android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void apply(final ProjectInternal project) {
    this.project = project;
    project.getPlugins().apply(BasePlugin.class);

    DefaultMavenFactory mavenFactory = new DefaultMavenFactory();
    final MavenPluginConvention pluginConvention = addConventionObject(project, mavenFactory);
    final DefaultDeployerFactory deployerFactory = new DefaultDeployerFactory(
            mavenFactory,
            loggingManagerFactory,
            fileResolver,
            pluginConvention,
            project.getConfigurations(),
            pluginConvention.getConf2ScopeMappings());

    configureUploadTasks(deployerFactory);
    configureUploadArchivesTask();

    PluginContainer plugins = project.getPlugins();
    plugins.withType(JavaPlugin.class, new Action<JavaPlugin>() {
        public void execute(JavaPlugin javaPlugin) {
            configureJavaScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
            configureInstall(project);
        }
    });
    plugins.withType(WarPlugin.class, new Action<WarPlugin>() {
        public void execute(WarPlugin warPlugin) {
            configureWarScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
        }
    });
}
 
Example 3
Source File: MavenPlugin.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void apply(final ProjectInternal project) {
    this.project = project;
    project.getPlugins().apply(BasePlugin.class);

    DefaultMavenFactory mavenFactory = new DefaultMavenFactory();
    final MavenPluginConvention pluginConvention = addConventionObject(project, mavenFactory);
    final DefaultDeployerFactory deployerFactory = new DefaultDeployerFactory(
            mavenFactory,
            loggingManagerFactory,
            fileResolver,
            pluginConvention,
            project.getConfigurations(),
            pluginConvention.getConf2ScopeMappings());

    configureUploadTasks(deployerFactory);
    configureUploadArchivesTask();

    PluginContainer plugins = project.getPlugins();
    plugins.withType(JavaPlugin.class, new Action<JavaPlugin>() {
        public void execute(JavaPlugin javaPlugin) {
            configureJavaScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
            configureInstall(project);
        }
    });
    plugins.withType(WarPlugin.class, new Action<WarPlugin>() {
        public void execute(WarPlugin warPlugin) {
            configureWarScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
        }
    });
}
 
Example 4
Source File: MavenPlugin.java    From Pushjet-Android with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void apply(final ProjectInternal project) {
    this.project = project;
    project.getPlugins().apply(BasePlugin.class);

    DefaultMavenFactory mavenFactory = new DefaultMavenFactory();
    final MavenPluginConvention pluginConvention = addConventionObject(project, mavenFactory);
    final DefaultDeployerFactory deployerFactory = new DefaultDeployerFactory(
            mavenFactory,
            loggingManagerFactory,
            fileResolver,
            pluginConvention,
            project.getConfigurations(),
            pluginConvention.getConf2ScopeMappings());

    configureUploadTasks(deployerFactory);
    configureUploadArchivesTask();

    PluginContainer plugins = project.getPlugins();
    plugins.withType(JavaPlugin.class, new Action<JavaPlugin>() {
        public void execute(JavaPlugin javaPlugin) {
            configureJavaScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
            configureInstall(project);
        }
    });
    plugins.withType(WarPlugin.class, new Action<WarPlugin>() {
        public void execute(WarPlugin warPlugin) {
            configureWarScopeMappings(project.getConfigurations(), pluginConvention.getConf2ScopeMappings());
        }
    });
}