Class AbstractPublishToMaven

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.publish.maven.tasks.AbstractPublishToMaven
All Implemented Interfaces:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, Configurable<Task>
Direct Known Subclasses:
PublishToMavenLocal, PublishToMavenRepository

@DisableCachingByDefault(because="Abstract super-class, not to be instantiated directly") public abstract class AbstractPublishToMaven extends DefaultTask
Base class for tasks that publish a MavenPublication.
Since:
2.4
  • Constructor Details

    • AbstractPublishToMaven

      public AbstractPublishToMaven()
  • Method Details

    • getPublication

      @Internal public MavenPublication getPublication()
      The publication to be published.
      Returns:
      The publication to be published
    • setPublication

      public void setPublication(MavenPublication publication)
      Sets the publication to be published.
      Parameters:
      publication - The publication to be published
    • getPublicationInternal

      @Internal protected org.gradle.api.publish.maven.internal.publication.MavenPublicationInternal getPublicationInternal()
    • getMavenPublishers

      @Inject protected org.gradle.api.publish.maven.internal.publisher.MavenPublishers getMavenPublishers()
    • getDuplicatePublicationTracker

      @Inject protected org.gradle.api.publish.maven.internal.publisher.MavenDuplicatePublicationTracker getDuplicatePublicationTracker()