Class PublishToMavenRepository

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

@DisableCachingByDefault(because="Not worth caching") public abstract class PublishToMavenRepository extends AbstractPublishToMaven
Since:
1.4
  • Constructor Details

    • PublishToMavenRepository

      public PublishToMavenRepository()
  • Method Details

    • getRepository

      @Internal public MavenArtifactRepository getRepository()
      The repository to publish to.
      Returns:
      The repository to publish to
    • getListenerManager

      @Inject protected org.gradle.internal.event.ListenerManager getListenerManager()
    • setRepository

      public void setRepository(MavenArtifactRepository repository)
      Sets the repository to publish to.
      Parameters:
      repository - The repository to publish to
    • publish

      public void publish()