Package: org.gradle.api.publish.ivy.tasks

## [Java] Class PublishToIvyRepository

- org.gradle.api.publish.ivy.tasks.PublishToIvyRepository

- Publishes an IvyPublication to an IvyArtifactRepository.

  Since:
    1.3

- - ### Constructor Summary

    Constructors
    Constructor and description
    `PublishToIvyRepository ()`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `protected IvyPublisher` | `getIvyPublisher()`
    `IvyPublication` | `getPublication()` The publication to be published.
    `IvyArtifactRepository` | `getRepository()` The repository to publish to.
    `void` | `publish()`
    `void` | `setPublication(IvyPublication publication)` Sets the publication to be published.
    `void` | `setRepository(IvyArtifactRepository repository)` Sets the repository to publish to.

- - ### Constructor Detail

    - #### public PublishToIvyRepository()

  - ### Method Detail

    - #### @Inject protected IvyPublisher getIvyPublisher()

    - #### public IvyPublication getPublication()

      The publication to be published.

      Returns:
        The publication to be published

    - #### public IvyArtifactRepository getRepository()

      The repository to publish to.

      Returns:
        The repository to publish to

    - #### @TaskAction public void publish()

    - #### public void setPublication(IvyPublication publication)

      Sets the publication to be published.

      Parameters:
        `publication` - The publication to be published

    - #### public void setRepository(IvyArtifactRepository repository)

      Sets the repository to publish to.

      Parameters:
        `repository` - The repository to publish to