class GithubPagesPluginExtension
Extension for gh-pages specific properties.
Modifiers | Name | Description |
---|---|---|
static class |
GithubPagesPluginExtension.DestinationCopySpec |
Type | Name and description |
---|---|
java.lang.String |
commitMessage The message used when committing changes to Github pages branch. |
PasswordCredentials |
credentials |
boolean |
deleteExistingFiles Whether to delete existing files in the branch, replacing the entire contents. |
CopySpec |
pages The distribution of files to put in gh-pages. |
java.lang.Object |
repoUri The URI of the Github repository. |
java.lang.Object |
targetBranch The branch of the Github repository to push to. |
java.lang.Object |
workingPath The path to put the github repository in. |
Constructor and description |
---|
GithubPagesPluginExtension
(Project project) Constructs the plugin extension. |
Type | Name and description |
---|---|
void |
credentials(groovy.lang.Closure closure) Configured the credentials to be used when interacting with the repo. |
java.lang.String |
getRepoUri() Gets the URI of the Github repository. |
java.io.File |
getWorkingDir() Gets the working directory that the repo will be places in. |
void |
pages(groovy.lang.Closure closure) Configures the gh-pages copy spec. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
The message used when committing changes to Github pages branch. Defaults to 'Publish of Github pages from Gradle.'.
Whether to delete existing files in the branch, replacing the
entire contents. Defaults to true
.
The distribution of files to put in gh-pages. Defaults
to including src/main/ghpages
.
The URI of the Github repository.
The branch of the Github repository to push to.
Defaults to gh-pages
The path to put the github repository in. Defaults to
build/ghpages
.
Constructs the plugin extension.
project
- the project to create
the extension forConfigured the credentials to be used when interacting with the repo. This will be passed a PasswordCredentials instance.
closure
- the configuration closureGets the URI of the Github repository. This will be used to clone the repository.
Gets the working directory that the repo will be places in.
Configures the gh-pages copy spec.
closure
- the configuration closureGroovy Documentation