Search in sources :

Example 1 with SingleOutputTaskMavenArtifact

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);
}
Also used : SingleOutputTaskMavenArtifact(org.gradle.api.publish.maven.internal.artifact.SingleOutputTaskMavenArtifact)

Example 2 with SingleOutputTaskMavenArtifact

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;
}
Also used : SingleOutputTaskMavenArtifact(org.gradle.api.publish.maven.internal.artifact.SingleOutputTaskMavenArtifact)

Aggregations

SingleOutputTaskMavenArtifact (org.gradle.api.publish.maven.internal.artifact.SingleOutputTaskMavenArtifact)2