]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17714 Fix elasticsearch/bin directory issue
authorJacek Poreda <jacek.poreda@sonarsource.com>
Wed, 22 Feb 2023 09:39:50 +0000 (10:39 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 22 Feb 2023 20:03:04 +0000 (20:03 +0000)
Elasticsearch requires to not have empty elasticsearch/bin directory, hence we are excluding some of the scripts from the archive

sonar-application/build.gradle

index 6a9d0c34e756077b1f3fa57f51dc92894a218694..1ee3a5be18fbf3e14f63fd5dcc4e04c291b9b8ae 100644 (file)
@@ -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'