Strategy to infer a version from the project's and Git repository's state.
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.String |
getName()The name of the strategy. |
|
ReleaseVersion |
infer(org.gradle.api.Project project, org.ajoberstar.grgit.Grgit grgit)Infers the project version from the repository. |
|
boolean |
selector(org.gradle.api.Project project, org.ajoberstar.grgit.Grgit grgit)Determines if the strategy should be used to infer the project's version. |
The name of the strategy.
Infers the project version from the repository.
project - the project the version should be inferred forgrgit - the repository the version should be inferred from Determines if the strategy should be used to infer the project's version.
A return of false does not mean that the strategy cannot be used
as the default.
project - the project the version should be inferred forgrgit - the repository the version should be inferred fromtrue if the strategy should be used to infer the version