class GitVersionPlugin extends java.lang.Object
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
apply(org.gradle.api.Project target) |
|
java.lang.String |
getRepositoryFromGit()Gets the nexus repository based on the git branch name @return |
|
java.lang.String |
getVersionFromGit(boolean doCreateMissingTag) |
|
java.lang.String |
getVersionName(int increment)Gets the version name from the latest Git tag. |
| 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() |
Gets the nexus repository based on the git branch name
Gets the version name from the latest Git tag. If increment is larger than 0, that value is added to the minor version number, and the revision is set to 0.
increment - the number to add to the minor version number