| Type | Name and description |
|---|---|
groovy.lang.Closure<BranchInfo> |
branchParserGetting the version type from a branch. |
groovy.lang.Closure<java.lang.String> |
dirtyDirty mode. |
boolean |
dirtyFailOnReleasesIf set to true, the build will fail if working copy is dirty and if the branch type is
part of the releases list ("release" only by default). |
java.lang.String |
dirtySuffixDefault dirty suffix |
java.lang.Object |
displayModeDisplay mode |
groovy.lang.Closure<java.lang.String> |
fullComputes the full version. |
java.util.Set<java.lang.String> |
releasesSet of eligible branch types for computing a display version from the branch base name |
java.lang.String |
scmVersion SCM - git by default |
java.lang.String |
snapshotDefault Snapshot extension |
| Constructor and description |
|---|
VersioningExtension
(org.gradle.api.Project project)Constructor |
| Type | Name and description |
|---|---|
VersionInfo |
computeInfo()Computes the version information. |
VersionInfo |
getInfo()Gets the computed version information |
| 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() |
Getting the version type from a branch. Default: getting the part before the first "/" (or a second optional 'separator' parameter). If no slash is found, takes the branch name as whole. For example: * release/2.0 --> release * feature/2.0 --> feature * master --> master
Dirty mode. Closure that takes a version (display or full) and processes it to produce a dirty indicator. By default, it appends the dirtySuffix value to the version.
If set to true, the build will fail if working copy is dirty and if the branch type is
part of the releases list ("release" only by default).
Default dirty suffix
Display mode
Computes the full version.
Set of eligible branch types for computing a display version from the branch base name
Version SCM - git by default
Default Snapshot extension
Constructor
project - Linked projectComputes the version information.
Gets the computed version information
Groovy Documentation