Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, org.gradle.util.Configurable<Task>
PublishToMavenLocal
, PublishToMavenRepository
public abstract class AbstractPublishToMaven extends DefaultTask
MavenPublication
.Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
AbstractPublishToMaven() |
Modifier and Type | Method | Description |
---|---|---|
protected org.gradle.api.publish.maven.internal.publisher.MavenDuplicatePublicationTracker |
getDuplicatePublicationTracker() |
|
protected org.gradle.api.publish.maven.internal.publisher.MavenPublishers |
getMavenPublishers() |
|
MavenPublication |
getPublication() |
The publication to be published.
|
protected org.gradle.api.publish.maven.internal.publication.MavenPublicationInternal |
getPublicationInternal() |
|
void |
setPublication(MavenPublication publication) |
Sets the publication to be published.
|
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getRequiredServices, getServices, getSharedResources, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
@Internal public MavenPublication getPublication()
public void setPublication(MavenPublication publication)
publication
- The publication to be published@Internal protected org.gradle.api.publish.maven.internal.publication.MavenPublicationInternal getPublicationInternal()
@Inject protected org.gradle.api.publish.maven.internal.publisher.MavenPublishers getMavenPublishers()
@Inject protected org.gradle.api.publish.maven.internal.publisher.MavenDuplicatePublicationTracker getDuplicatePublicationTracker()