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 Params | Return Type | Name and description |
|---|---|---|
|
boolean |
defaultSelector(org.gradle.api.Project project, org.ajoberstar.grgit.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.
project - the project the version should be inferred forgrgit - the repository the version should be inferred fromtrue if the strategy can be used to infer the version