diff --git a/build.gradle b/build.gradle index 087e19a..6748378 100644 --- a/build.gradle +++ b/build.gradle @@ -17,15 +17,20 @@ repositories { sourceCompatibility = 1.8 targetCompatibility = 1.8 -def isRelease = versionDetails().commitDistance == 0 - group 'io.rudefox' -version isRelease ? gitVersion.call() : gitVersion.call() + "-SNAPSHOT" application { mainClassName = 'io.rudefox.burrow.RudefoxBurrow' } +def isRelease = versionDetails().commitDistance == 0 && + versionDetails().isCleanTag && + versionDetails().branchName == 'master' + +version isRelease ? gitVersion.call() : gitVersion.call() + "-${versionDetails().branchName}-SNAPSHOT" + +println "${group}:${project.name}:${version}" + ' ' + (isRelease ? '(RELEASE)' : '(SNAPSHOT)') + run { standardInput = System.in }