diff --git a/build.gradle b/build.gradle index f992090e..33776c47 100644 --- a/build.gradle +++ b/build.gradle @@ -1,33 +1,36 @@ plugins { - id 'pl.allegro.tech.build.axion-release' version '1.3.2' + id 'pl.allegro.tech.build.axion-release' version '1.3.4' +} + +allprojects { + apply plugin: 'pl.allegro.tech.build.axion-release' + scmVersion { + tag { + prefix = 'v' + versionSeparator = '' + def origDeserialize=deserialize + //apend .0 to satisfy semver if the tag version is only X.Y + deserialize = { config, position, tagName -> + def orig = origDeserialize(config, position, tagName) + if (orig.split('\\.').length < 3) { + orig += ".0" + } + orig + } + } + } + project.version = scmVersion.version + } apply plugin: 'idea' apply plugin: 'groovy' apply plugin: 'application' -apply plugin: 'pl.allegro.tech.build.axion-release' mainClassName = 'org.rundeck.client.tool.App' applicationName = 'rd' defaultTasks 'clean', 'build' -scmVersion { - tag { - prefix = 'v' - versionSeparator = '' - def origDeserialize=deserialize - //apend .0 to satisfy semver if the tag version is only X.Y - deserialize = { config, position, tagName -> - def orig = origDeserialize(config, position, tagName) - if (orig.split('\\.').length < 3) { - orig += ".0" - } - orig - } - } -} - -project.version = scmVersion.version diff --git a/toolbelt-jewelcli/build.gradle b/toolbelt-jewelcli/build.gradle index 3e671dd2..3b11dd5e 100644 --- a/toolbelt-jewelcli/build.gradle +++ b/toolbelt-jewelcli/build.gradle @@ -1,4 +1,3 @@ -version '0.1.0-SNAPSHOT' apply plugin: 'java' diff --git a/toolbelt/build.gradle b/toolbelt/build.gradle index c77b5260..b0e108cf 100644 --- a/toolbelt/build.gradle +++ b/toolbelt/build.gradle @@ -1,4 +1,3 @@ -version '0.1.0-SNAPSHOT' apply plugin: 'java' apply plugin: 'groovy'