The identifiedVersion is determined by applying the following rules in order, stopping as soon as one succeeds: 1) If the develop branch is checked out, the version is <next_release_version>-SNAPSHOT 2) If a release branch is checked out, the version is <release-version>-SNAPSHOT 3) If a hotfix branch is checked out, the version is <hotfix-version>-SNAPSHOT 4) If a feature branch is checked out, the version is <next-release-version>-<feature-name>-SNAPSHOT 5) If one and only one version tag refers to the current commit, the version is the same as the tag (If more than one version tag refers to the commit, an IllegalStateException is thrown) 6) If one and only one release branch refers to the current commit, the version is <release-version>-SNAPSHOT (If more than one release branch refers to the commit, an IllegalStateException is thrown) 7) If one and only one feature branch refers to the current commit, the version is <next-release-version>-<feature-name>-SNAPSHOT (If more than one feature branch refers to the commit, an IllegalStateException is thrown) 8) If the develop branch refers to the current commit, the version is <next_release_version>-SNAPSHOT 9) If one and only one hotfix branch refers to the current commit, the version is <hotfix-version>-SNAPSHOT (If more than one feature branch refers to the commit, an IllegalStateException is thrown)
The identifiedVersion is determined by applying the following rules in order, stopping as soon as one succeeds: 1) If the develop branch is checked out, the version is <next_release_version>-SNAPSHOT 2) If a release branch is checked out, the version is <release-version>-SNAPSHOT 3) If a hotfix branch is checked out, the version is <hotfix-version>-SNAPSHOT 4) If a feature branch is checked out, the version is <next-release-version>-<feature-name>-SNAPSHOT 5) If one and only one version tag refers to the current commit, the version is the same as the tag (If more than one version tag refers to the commit, an IllegalStateException is thrown) 6) If one and only one release branch refers to the current commit, the version is <release-version>-SNAPSHOT (If more than one release branch refers to the commit, an IllegalStateException is thrown) 7) If one and only one feature branch refers to the current commit, the version is <next-release-version>-<feature-name>-SNAPSHOT (If more than one feature branch refers to the commit, an IllegalStateException is thrown) 8) If the develop branch refers to the current commit, the version is <next_release_version>-SNAPSHOT 9) If one and only one hotfix branch refers to the current commit, the version is <hotfix-version>-SNAPSHOT (If more than one feature branch refers to the commit, an IllegalStateException is thrown)
The following patterns are used to identify the branches: release branch: release/<release-version> hotfix branch: hotfix/<hotfix-version> feature branch: feature/<feature-name> develop branch: develop
Version tags must match the pattern <major>.<minor>.<optional incremental> Regex: \d+\.\d+(\.\d+)?
the best artifact version to use, given the state of git
Returns the identifiedVersion of the git directory (if available).
Returns the identifiedVersion of the git directory (if available). Otherwise, throws an IllegalStateException.
Returns the identifiedVersion of the git directory (if available).
Returns the identifiedVersion of the git directory (if available). Otherwise, returns the current develop version.
Returns the identifiedVersion of the git directory (if available).
Returns the identifiedVersion of the git directory (if available). Otherwise, returns 0.0-SNAPSHOT.