org.gradle.api.artifacts.dsl
Interface ArtifactHandler


public interface ArtifactHandler

This class is for creating publish artifacts and adding them to configurations. Creating publish artifacts does not mean to create an archive. What is created is a domain object which represents a file to be published and information on how it should be published (e.g. the name). The publish artifact, that should be created, can only be described with an archive at the moment. We will add additional notations in the future.

To create an publish artifact and assign it to a configuration you can use the following syntax:

<ArtifactHandler>.<configurationName> <archive1>, <archive2>, ...

The information for publishing the artifact is extracted from the archive (e.g. name, extension, ...).