aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorJacek Poreda <jacek.poreda@sonarsource.com>2023-02-22 10:39:50 +0100
committersonartech <sonartech@sonarsource.com>2023-02-22 20:03:04 +0000
commit0b71ed31d6624a23a4b597a9fdc85f95375d1e9c (patch)
tree88f48833eedf0e8e99bfb158752d340c78874b69 /sonar-application
parent294bda258ce44453fd7b9aae85b713551fa73f37 (diff)
downloadsonarqube-0b71ed31d6624a23a4b597a9fdc85f95375d1e9c.tar.gz
sonarqube-0b71ed31d6624a23a4b597a9fdc85f95375d1e9c.zip
SONAR-17714 Fix elasticsearch/bin directory issue
Elasticsearch requires to not have empty elasticsearch/bin directory, hence we are excluding some of the scripts from the archive
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/build.gradle20
1 files changed, 19 insertions, 1 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index 6a9d0c34e75..1ee3a5be18f 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -154,7 +154,25 @@ task zip(type: Zip, dependsOn: [configurations.compileClasspath, downloadElastic
fcd.relativePath = new RelativePath(true, *path)
}
into("${archiveDir}/elasticsearch")
- exclude '**/bin/**'
+ exclude '**/bin/elasticsearch-certgen'
+ exclude '**/bin/elasticsearch-certutil'
+ exclude '**/bin/elasticsearch-create-enrollment-token'
+ exclude '**/bin/elasticsearch-croneval'
+ exclude '**/bin/elasticsearch-env-from-file'
+ exclude '**/bin/elasticsearch-geoip'
+ exclude '**/bin/elasticsearch-keystore'
+ exclude '**/bin/elasticsearch-node'
+ exclude '**/bin/elasticsearch-plugin'
+ exclude '**/bin/elasticsearch-reconfigure-node'
+ exclude '**/bin/elasticsearch-reset-password'
+ exclude '**/bin/elasticsearch-saml-metadata'
+ exclude '**/bin/elasticsearch-service-tokens'
+ exclude '**/bin/elasticsearch-setup-passwords'
+ exclude '**/bin/elasticsearch-shard'
+ exclude '**/bin/elasticsearch-sql-cli'
+ exclude '**/bin/elasticsearch-sql-cli-8.6.1.jar'
+ exclude '**/bin/elasticsearch-syskeygen'
+ exclude '**/bin/elasticsearch-users'
exclude '**/jdk/**'
exclude '**/lib/tools/plugin-cli'
exclude '**/lib/tools/geoip-cli'