diff --git a/build.gradle b/build.gradle index d5332a1..7e93d92 100644 --- a/build.gradle +++ b/build.gradle @@ -47,7 +47,7 @@ String gitVersion() { def versionPattern = Pattern.compile("v(\\d+\\.)?(\\d+\\.)?(\\d+)(-.*)?") ByteArrayOutputStream out = new ByteArrayOutputStream() exec { - commandLine = ['git', 'describe', '--always', '--dirty'] + commandLine = ['git', 'describe', '--tags', '--always', '--dirty'] standardOutput = out } def v = out.toString().replace(System.lineSeparator(), '')