diff --git a/VERSION b/VERSION index 6ed7776bf3219..b617d997d7701 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.9.0 +4.9.0 \ No newline at end of file diff --git a/distribution/archives/build.gradle b/distribution/archives/build.gradle index eaecdb2a49dac..a4c95e64b7b2c 100644 --- a/distribution/archives/build.gradle +++ b/distribution/archives/build.gradle @@ -33,6 +33,7 @@ import org.opensearch.gradle.JavaPackageType apply plugin: 'opensearch.internal-distribution-archive-setup' CopySpec archiveFiles(CopySpec modulesFiles, String distributionType, String platform, String architecture, JavaPackageType java) { + version = rootProject.file('VERSION').getText() return copySpec { into("wazuh-indexer-${version}") { into('lib') { diff --git a/distribution/packages/build.gradle b/distribution/packages/build.gradle index bdd77e89627ce..7c0bb4037f2a3 100644 --- a/distribution/packages/build.gradle +++ b/distribution/packages/build.gradle @@ -106,6 +106,7 @@ addProcessFilesTask('rpm', false) // since we have different templated files that need to be consumed, but the structure // is the same Closure commonPackageConfig(String type, boolean jdk, String architecture) { + project.version = rootProject.file('VERSION').getText() return { onlyIf { OS.current().equals(OS.WINDOWS) == false @@ -194,12 +195,6 @@ Closure commonPackageConfig(String type, boolean jdk, String architecture) { } } - // // Version file - // into('/usr/share/wazuh-indexer') { - // from(rootProject.file('VERSION')) - // fileMode 0644 - // } - // license files if (type == 'deb') { into("/usr/share/doc/${packageName}") {