Search in sources :

Example 1 with ProjectPublicationRegistry

use of org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry in project gradle by gradle.

the class JavaGradlePluginPlugin method registerPlugins.

private void registerPlugins(Project project, GradlePluginDevelopmentExtension extension) {
    ProjectInternal projectInternal = (ProjectInternal) project;
    ProjectPublicationRegistry registry = projectInternal.getServices().get(ProjectPublicationRegistry.class);
    extension.getPlugins().all(pluginDeclaration -> registry.registerPublication(projectInternal, new LocalPluginPublication(pluginDeclaration)));
}
Also used : ProjectInternal(org.gradle.api.internal.project.ProjectInternal) ProjectPublicationRegistry(org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry)

Aggregations

ProjectPublicationRegistry (org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry)1 ProjectInternal (org.gradle.api.internal.project.ProjectInternal)1