use of org.gradle.model.Finalize in project gradle by gradle.
the class MavenPluginPublishingRules method addMarkerPublications.
@Finalize
public void addMarkerPublications(PublishingExtension publishing, GradlePluginDevelopmentExtension pluginDevelopment) {
if (!pluginDevelopment.isAutomatedPublishing()) {
return;
}
PublicationContainer publications = publishing.getPublications();
NamedDomainObjectContainer<PluginDeclaration> declaredPlugins = pluginDevelopment.getPlugins();
for (PluginDeclaration declaration : declaredPlugins) {
createMavenMarkerPublication(declaration, (MavenPublication) publications.getByName("pluginMaven"), publications);
}
}
use of org.gradle.model.Finalize in project gradle by gradle.
the class IvyPluginPublishingRules method addMarkerPublications.
@Finalize
public void addMarkerPublications(PublishingExtension publishing, GradlePluginDevelopmentExtension pluginDevelopment) {
if (!pluginDevelopment.isAutomatedPublishing()) {
return;
}
PublicationContainer publications = publishing.getPublications();
NamedDomainObjectContainer<PluginDeclaration> declaredPlugins = pluginDevelopment.getPlugins();
for (PluginDeclaration declaration : declaredPlugins) {
createIvyMarkerPublication(declaration, (IvyPublication) publications.getByName("pluginIvy"), publications);
}
}
Aggregations