class GrabVer extends java.lang.Object
User values:
major: User defined breaking changes.
minor: User defined new features, but backwards compatible.
patch: Optional, user defined value or Auto generated backwards compatible bug fixes only.
preRelease: Optional, user defined value for versionName.
incrementOn: Optional, custom task name to trigger the increase of the version
(default: assembleRelease, bundleRelease, grabverRelease).
saveOn: Optional, custom task name for which you want to save the versioning file
(default: build, assembleDebug, assembleRelease, bundleDebug, bundleRelease, grabverRelease, jar,
war, explodedWar).
Calculation:
build - increases at each build.
code - increases at each release.
patch - if not specified, auto-increases at each release, but it auto-resets back to 0 when Minor or Major
version increments or if PreRelease is set.
| Modifiers | Name | Description |
|---|---|---|
protected boolean |
isFirstRun |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project project) |
|
protected boolean |
readUserConfiguration()This plugin needs configuration evaluation done during the Gradle project evaluation and before it completes. |
| 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() |
This plugin needs configuration evaluation done during the Gradle project evaluation and before it completes. This plugin works without specifying any custom task, but because Gradle provides only one way to read the user values (at afterEvaluation time), it is too late for this plugin to wait such event.
To overcome at this "issue", this function is being called at the first extension invocation (user must grab one of the extension attribute).