|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gradle.api.DefaultTask
org.ajoberstar.gradle.git.tasks.GitBase
org.ajoberstar.gradle.git.tasks.GitPush
public class GitPush extends GitBase
Task to push changes to a remote repository.
Method Summary | |
---|---|
void
|
credentials(groovy.lang.Closure closure)
Configures the credentials to use when pushing changes. |
PasswordCredentials
|
getCredentials()
Gets the credentials to use when pushing changes. |
java.lang.String
|
getRemote()
Gets the remote to push to. |
boolean
|
isForce()
Gets whether to force the push. |
boolean
|
isPushAll()
Gets whether to push all branches. |
boolean
|
isPushTags()
Gets whether tags will also be pushed. |
void
|
push()
Pushes changes to a remote repository. |
void
|
setCredentials(PasswordCredentials credentials)
Sets the credentials to use when pushing changes. |
void
|
setForce(boolean force)
Sets whether to force the push. |
void
|
setPushAll(boolean pushAll)
Sets whether to push all branches. |
void
|
setPushTags(boolean pushTags)
Sets whether tags will also be pushed. |
void
|
setRemote(java.lang.Object remote)
Sets the remote to push to. |
Methods inherited from class GitBase | |
---|---|
getGit, getRepoDir, setRepoPath |
Method Detail |
---|
ssWarnings("rawtypes") public public void credentials(groovy.lang.Closure closure)
closure
- the configuration closure
@Input @Option al public public PasswordCredentials getCredentials()
@Input public public java.lang.String getRemote()
@Input public public boolean isForce()
@Input public public boolean isPushAll()
@Input public public boolean isPushTags()
tion public public void push()
public void setCredentials(PasswordCredentials credentials)
credentials
- the credentials
public void setForce(boolean force)
force
- whether to force the push
public void setPushAll(boolean pushAll)
pushAll
- whether to push all branches
public void setPushTags(boolean pushTags)
pushTags
- whether to push tags
public void setRemote(java.lang.Object remote)
remote
- the remote to push to
Groovy Documentation