Skip to content

Commit

Permalink
Apply Wazuh version to packages names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexRuiz7 committed Dec 5, 2023
1 parent 3a9a8c2 commit 98fe3be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.9.0
4.9.0
1 change: 1 addition & 0 deletions distribution/archives/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
7 changes: 1 addition & 6 deletions distribution/packages/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}") {
Expand Down

0 comments on commit 98fe3be

Please sign in to comment.