# README
gradle-git-version-calculator
Script for generating semantic version based on the version in gradle.properties and git branch
# Functions
CalculateSemanticVersion - calculates the semantic version depending on the gradle version (taken from the gradle.properties) and git branch
Branch gradle.version semantic version develop 1.0.0-SNAPSHOT 1.0.0-SNAPSHOT some-branch 1.0.0-SNAPSHOT 1.0.0-some-branch-SNAPSHOT feature/x 1.0.0-SNAPSHOT 1.0.0-feature-x-SNAPSHOT defect/x 1.0.0-SNAPSHOT 1.0.0-feature-x-SNAPSHOT release/1.x 1.0.0 1.0.0-rc{BUILD} hotfix/1.x 1.0.0 1.0.0-rc{BUILD} master 1.0.0 1.0.0.
ResolveGitBranch resolves the git branch based on either the environment variable (Jenkins build) or local git.
ResolveGradleVersion takes version property value from the gradle.properties file.