diff --git a/reports-scheduler/build.gradle b/reports-scheduler/build.gradle index d1a7fa3a..c8973fe8 100644 --- a/reports-scheduler/build.gradle +++ b/reports-scheduler/build.gradle @@ -92,6 +92,7 @@ ext { licenseFile = rootProject.file('LICENSE.txt') noticeFile = rootProject.file('NOTICE.txt') isSnapshot = "true" == System.getProperty("build.snapshot", "true") + buildVersionQualifier = System.getProperty("build.version_qualifier") } plugins.withId('java') { @@ -104,7 +105,10 @@ plugins.withId('org.jetbrains.kotlin.jvm') { allprojects { group = "org.opensearch" - version = "${opensearch_version}" - "-SNAPSHOT" + ".0" + version = opensearch_version.tokenize('-')[0] + '.0' + if (buildVersionQualifier) { + version += "-${buildVersionQualifier}" + } if (isSnapshot) { version += "-SNAPSHOT" }