Strategy to infer a version from the project's and Git repository's state.
Type | Name and description |
---|---|
java.lang.String |
getName() The name of the strategy. |
ReleaseVersion |
infer(Project project, Grgit grgit) Infers the project version from the repository. |
boolean |
selector(Project project, 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.
true
if the strategy should be used to infer the versionproject
- the project the version should be inferred forgrgit
- the repository the version should be inferred from