|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gradle.api.internal.AbstractTask org.gradle.api.DefaultTask org.gradle.api.publish.maven.tasks.PublishToMavenRepository
@Incubating public class PublishToMavenRepository extends DefaultTask
Publishes a MavenPublication to a MavenArtifactRepository.
Constructor Summary | |
PublishToMavenRepository(Factory loggingManagerFactory)
|
Method Summary | |
---|---|
protected void
|
doPublish(MavenPublicationInternal publication, MavenArtifactRepository repository)
|
protected Factory
|
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. |
Constructor Detail |
---|
@Inject public PublishToMavenRepository(Factory loggingManagerFactory)
Method Detail |
---|
protected void doPublish(MavenPublicationInternal publication, MavenArtifactRepository repository)
protected Factory getLoggingManagerFactory()
public MavenPublication getPublication()
public MavenArtifactRepository getRepository()
@TaskAction public void publish()
public void setPublication(MavenPublication publication)
publication
- The publication to be published
public void setRepository(MavenArtifactRepository repository)
repository
- The repository to publish to
Gradle API 1.12