use of org.gradle.plugin.devel.PluginDeclaration 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.plugin.devel.PluginDeclaration in project gradle by gradle.
the class GeneratePluginDescriptors method generatePluginDescriptors.
@TaskAction
public void generatePluginDescriptors() {
clearOutputDirectory();
for (PluginDeclaration declaration : getDeclarations()) {
File descriptorFile = new File(getOutputDirectory(), declaration.getId() + ".properties");
Properties properties = new Properties();
properties.setProperty("implementation-class", declaration.getImplementationClass());
writePropertiesTo(properties, descriptorFile);
}
}
use of org.gradle.plugin.devel.PluginDeclaration 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