Strategy to infer a version from the project's and Git repository's state. This also supports being selected as a default strategy. This is a temporary interface and should be replaced in some other way in gradle-git 2.0.0.
Type | Name and description |
---|---|
boolean |
defaultSelector(Project project, Grgit grgit) Determines if the strategy can be used as a default strategy for inferring the project's version. |
Methods inherited from class | Name |
---|---|
interface VersionStrategy |
getName, infer, selector |
Determines if the strategy can be used as a default strategy for inferring
the project's version. A return of false
does not mean that the
strategy cannot be used as the default.
true
if the strategy can be used to infer the versionproject
- the project the version should be inferred forgrgit
- the repository the version should be inferred from