Search in sources :

Example 1 with DerivedMavenArtifact

use of org.gradle.api.publish.maven.internal.artifact.DerivedMavenArtifact in project gradle by gradle.

the class DefaultMavenPublication method addDerivedArtifact.

@Override
public MavenArtifact addDerivedArtifact(MavenArtifact originalArtifact, DerivedArtifact file) {
    MavenArtifact artifact = new DerivedMavenArtifact((AbstractMavenArtifact) originalArtifact, file);
    derivedArtifacts.add(artifact);
    return artifact;
}
Also used : DerivedMavenArtifact(org.gradle.api.publish.maven.internal.artifact.DerivedMavenArtifact) SingleOutputTaskMavenArtifact(org.gradle.api.publish.maven.internal.artifact.SingleOutputTaskMavenArtifact) DerivedMavenArtifact(org.gradle.api.publish.maven.internal.artifact.DerivedMavenArtifact) MavenArtifact(org.gradle.api.publish.maven.MavenArtifact) AbstractMavenArtifact(org.gradle.api.publish.maven.internal.artifact.AbstractMavenArtifact)

Aggregations

MavenArtifact (org.gradle.api.publish.maven.MavenArtifact)1 AbstractMavenArtifact (org.gradle.api.publish.maven.internal.artifact.AbstractMavenArtifact)1 DerivedMavenArtifact (org.gradle.api.publish.maven.internal.artifact.DerivedMavenArtifact)1 SingleOutputTaskMavenArtifact (org.gradle.api.publish.maven.internal.artifact.SingleOutputTaskMavenArtifact)1