From: Jacek Poreda Date: Wed, 22 Feb 2023 09:39:50 +0000 (+0100) Subject: SONAR-17714 Fix elasticsearch/bin directory issue X-Git-Tag: 10.0.0.68432~209 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0b71ed31d6624a23a4b597a9fdc85f95375d1e9c;p=sonarqube.git 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 --- 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'