Search in sources :

Example 1 with ConfigurablePublishArtifact

use of org.gradle.api.artifacts.ConfigurablePublishArtifact in project gradle by gradle.

the class DefaultVariant method artifact.

@Override
public void artifact(Object notation, Action<? super ConfigurablePublishArtifact> configureAction) {
    ConfigurablePublishArtifact publishArtifact = artifactNotationParser.parseNotation(notation);
    artifacts.add(publishArtifact);
    configureAction.execute(publishArtifact);
}
Also used : ConfigurablePublishArtifact(org.gradle.api.artifacts.ConfigurablePublishArtifact)

Example 2 with ConfigurablePublishArtifact

use of org.gradle.api.artifacts.ConfigurablePublishArtifact in project gradle by gradle.

the class DefaultConfigurationPublications method artifact.

@Override
public void artifact(Object notation, Action<? super ConfigurablePublishArtifact> configureAction) {
    ConfigurablePublishArtifact publishArtifact = artifactNotationParser.parseNotation(notation);
    artifacts.add(publishArtifact);
    configureAction.execute(publishArtifact);
}
Also used : ConfigurablePublishArtifact(org.gradle.api.artifacts.ConfigurablePublishArtifact)

Example 3 with ConfigurablePublishArtifact

use of org.gradle.api.artifacts.ConfigurablePublishArtifact in project gradle by gradle.

the class DefaultArtifactHandler method pushArtifact.

private PublishArtifact pushArtifact(Configuration configuration, Object notation, Action<? super ConfigurablePublishArtifact> configureAction) {
    ConfigurablePublishArtifact publishArtifact = publishArtifactFactory.parseNotation(notation);
    configuration.getArtifacts().add(publishArtifact);
    configureAction.execute(publishArtifact);
    return publishArtifact;
}
Also used : ConfigurablePublishArtifact(org.gradle.api.artifacts.ConfigurablePublishArtifact)

Aggregations

ConfigurablePublishArtifact (org.gradle.api.artifacts.ConfigurablePublishArtifact)3