Extension providing configuration options for gradle-git's release plugins.
Sets the version to a DelayedVersion which will infer the version
when toString() is called on it. A strategy will be selected from the
ones configured on this extension and then used to infer the version.
| Modifiers | Name | Description |
|---|---|---|
protected org.gradle.api.Project |
project |
| Type | Name and description |
|---|---|
VersionStrategy |
defaultVersionStrategyThe strategy to use if all of the ones in versionStrategies return
false from their selector() methods. |
org.ajoberstar.grgit.Grgit |
grgitThe repository to infer the version from. |
java.lang.String |
remoteThe remote to fetch changes from and push changes to. |
TagStrategy |
tagStrategyThe strategy to use when creating a tag for the inferred version. |
| Constructor and description |
|---|
ReleasePluginExtension
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.util.List<VersionStrategy> |
getVersionStrategies()Gets all strategies in the order they were inserted into the extension. |
|
void |
tagStrategy(groovy.lang.Closure closure)Configures the tag strategy with the provided closure. |
|
void |
versionStrategy(VersionStrategy strategy)Adds a strategy to the extension. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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 strategy to use if all of the ones in versionStrategies return
false from their selector() methods. This strategy can be, but is
not required to be, one from versionStrategies.
The repository to infer the version from.
The remote to fetch changes from and push changes to.
The strategy to use when creating a tag for the inferred version.
Gets all strategies in the order they were inserted into the extension.
Configures the tag strategy with the provided closure.
Adds a strategy to the extension. If the strategy has the same name as one already configured, it will replace the existing one.
Groovy Documentation