All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.gradleplugins.internal.plugins.GradlePluginDevelopmentBasePlugin Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package dev.gradleplugins.internal.plugins;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

import javax.inject.Inject;

abstract /*final*/ class GradlePluginDevelopmentBasePlugin implements Plugin {
    @Inject
    public GradlePluginDevelopmentBasePlugin() {}

    @Override
    public void apply(Project project) {
        project.getPluginManager().apply(GradlePluginDevelopmentExtensionPlugin.class);
        project.getPluginManager().withPlugin("java-gradle-plugin", new RegisterCompatibilityExtension(project));
        project.getPluginManager().withPlugin("java-gradle-plugin", new RemoveGradleApiProjectDependency(project));
        project.getPluginManager().withPlugin("java-gradle-plugin", new AddGradleApiDependencyToCompileOnlyApiConfiguration(project));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy