class GithubPagesPluginExtension
Extension for gh-pages specific properties.
| Type | Name and description |
|---|---|
java.lang.String |
commitMessageThe message used when committing changes to Github pages branch. |
PasswordCredentials |
credentials |
CopySpec |
pagesThe distribution of files to put in gh-pages. |
java.lang.Object |
repoUriThe URI of the Github repository. |
java.lang.Object |
targetBranchThe branch of the Github repository to push to. |
java.lang.Object |
workingPathThe 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.'.
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