use of org.gradle.api.publish.maven.internal.artifact.SingleOutputTaskMavenArtifact in project gradle by gradle.
the class DefaultMavenPublication method setPomGenerator.
@Override
public void setPomGenerator(TaskProvider<? extends Task> pomGenerator) {
if (pomArtifact != null) {
metadataArtifacts.remove(pomArtifact);
}
pomArtifact = new SingleOutputTaskMavenArtifact(pomGenerator, "pom", null);
metadataArtifacts.add(pomArtifact);
}
use of org.gradle.api.publish.maven.internal.artifact.SingleOutputTaskMavenArtifact in project gradle by gradle.
the class DefaultMavenPublication method updateModuleDescriptorArtifact.
private void updateModuleDescriptorArtifact() {
if (!canPublishModuleMetadata()) {
return;
}
if (moduleDescriptorGenerator == null) {
return;
}
moduleMetadataArtifact = new SingleOutputTaskMavenArtifact(moduleDescriptorGenerator, "module", null);
metadataArtifacts.add(moduleMetadataArtifact);
moduleDescriptorGenerator = null;
}
Aggregations