Aggregate gradle plugins

Is there a way that I can apply multiple plugins to a project by applying a single plugin that transitively applies other plugins, i.e. apply plugin: ‘mystandardsetofplugins’

David,

You can definitely do that in your plugin. Here’s an example that applies the WAR plugin. You can apply as many plugins as you want. The apply method works with a Class or String parameter.

class YourPlugin implements Plugin<Project> {
    @Override
    void apply(Project project) {
        project.getPlugins().apply(WarPlugin.class)
    }
}

awesome will try that thanks!

You can also do:

class YourPlugin implements Plugin<Project> {
    @Override
    void apply(Project project) {
        project.apply plugin: WarPlugin
    }
}