Search in sources :

Example 1 with ImmutablePublishArtifact

use of org.gradle.api.internal.artifacts.publish.ImmutablePublishArtifact in project gradle by gradle.

the class PublishArtifactLocalArtifactMetadataSerializer method read.

@Override
public PublishArtifactLocalArtifactMetadata read(Decoder decoder) throws Exception {
    ComponentIdentifier identifier = componentIdentifierSerializer.read(decoder);
    String artifactName = decoder.readString();
    String artifactExtension = decoder.readString();
    String artifactType = decoder.readString();
    String artifactClassifier = decoder.readNullableString();
    File artifactFile = new File(decoder.readString());
    return new PublishArtifactLocalArtifactMetadata(identifier, new ImmutablePublishArtifact(artifactName, artifactExtension, artifactType, artifactClassifier, artifactFile));
}
Also used : PublishArtifactLocalArtifactMetadata(org.gradle.internal.component.local.model.PublishArtifactLocalArtifactMetadata) ImmutablePublishArtifact(org.gradle.api.internal.artifacts.publish.ImmutablePublishArtifact) ComponentIdentifier(org.gradle.api.artifacts.component.ComponentIdentifier) File(java.io.File)

Aggregations

File (java.io.File)1 ComponentIdentifier (org.gradle.api.artifacts.component.ComponentIdentifier)1 ImmutablePublishArtifact (org.gradle.api.internal.artifacts.publish.ImmutablePublishArtifact)1 PublishArtifactLocalArtifactMetadata (org.gradle.internal.component.local.model.PublishArtifactLocalArtifactMetadata)1