We must add the ivy-publish
plugin to our project to be able to publish our artifacts to an Ivy repository. The plugin allows us to use the Ivy format to describe our artifacts that need to be published.
The ivy-publish
plugin is based on the general publishing
plugin. The publishing
plugin adds a new publishing
extension to our project. We can use a publications
configuration block in our build script to configure the artifacts we want to publish and the repositories we want to deploy to. The publications
extension has the PublishingExtension
type in the org.gradle.api.publish
package. The plugin also adds a general life cycle publish
task to the project. Other tasks can be added as task dependencies to this task, so with a single publish
task, all the project's publications can be published.
The ivy-publish
plugins also adds some extra task rules to the project. There is a task to generate an Ivy descriptor file to each publication in the project. The plugins also add...