@Incubating public class PublishToMavenRepository extends DefaultTask
MavenPublication
to a MavenArtifactRepository
.Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
PublishToMavenRepository() |
Modifier and Type | Method and Description |
---|---|
protected void |
doPublish(org.gradle.api.publish.maven.internal.publication.MavenPublicationInternal publication,
MavenArtifactRepository repository) |
protected org.gradle.internal.Factory<org.gradle.logging.LoggingManagerInternal> |
getLoggingManagerFactory() |
MavenPublication |
getPublication()
The publication to be published.
|
MavenArtifactRepository |
getRepository()
The repository to publish to.
|
void |
publish() |
void |
setPublication(MavenPublication publication)
Sets the publication to be published.
|
void |
setRepository(MavenArtifactRepository repository)
Sets the repository to publish to.
|
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
public MavenPublication getPublication()
public void setPublication(MavenPublication publication)
publication
- The publication to be publishedpublic MavenArtifactRepository getRepository()
public void setRepository(MavenArtifactRepository repository)
repository
- The repository to publish topublic void publish()
@Inject protected org.gradle.internal.Factory<org.gradle.logging.LoggingManagerInternal> getLoggingManagerFactory()
protected void doPublish(org.gradle.api.publish.maven.internal.publication.MavenPublicationInternal publication, MavenArtifactRepository repository)