aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2021-12-17 14:56:11 +0100
committerJacek <jacek.poreda@sonarsource.com>2021-12-21 11:04:26 +0100
commitda71c710ff54d79b4155b81ace4925abd6b2fd00 (patch)
treebdbceef53f2b512c431325844bbf5ee7e65db01c
parent91d4039751b3fb647576ce03d8371e409b84e814 (diff)
downloadsonarqube-da71c710ff54d79b4155b81ace4925abd6b2fd00.tar.gz
sonarqube-da71c710ff54d79b4155b81ace4925abd6b2fd00.zip
SONAR-15847 Remove unnecessary modules from Elasticsearch distribution
(cherry picked from commit d17138f54e32a26d069d4ac984d0950b4c572df3)
-rw-r--r--sonar-application/build.gradle35
1 files changed, 25 insertions, 10 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index dd75f240b63..d73728b5d26 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -140,39 +140,54 @@ task zip(type: Zip, dependsOn: [configurations.compileClasspath, tasks.downloadL
}
// elasticsearch script will be replaced by patched version below
exclude '**/bin/elasticsearch'
+ exclude '**/bin/elasticsearch-certgen'
+ exclude '**/bin/elasticsearch-certutil'
exclude '**/bin/elasticsearch-cli'
+ exclude '**/bin/elasticsearch-croneval'
+ exclude '**/bin/elasticsearch-geoip'
exclude '**/bin/elasticsearch-keystore'
+ exclude '**/bin/elasticsearch-migrate'
exclude '**/bin/elasticsearch-node'
+ exclude '**/bin/elasticsearch-plugin'
+ 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-syskeygen'
+ exclude '**/bin/elasticsearch-users'
+ exclude '**/bin/x-pack-env'
+ exclude '**/bin/x-pack-security-env'
+ exclude '**/bin/x-pack-watcher-env'
exclude '**/jdk/**'
exclude '**/lib/tools/**'
exclude '**/modules/aggs-matrix-stats/**'
- exclude '**/modules/geo/**'
+ exclude '**/modules/constant-keyword/**'
+ exclude '**/modules/frozen-indices/**'
exclude '**/modules/ingest-common/**'
exclude '**/modules/ingest-geoip/**'
exclude '**/modules/ingest-user-agent/**'
exclude '**/modules/kibana/**'
exclude '**/modules/lang-expression/**'
exclude '**/modules/lang-mustache/**'
+ exclude '**/modules/legacy-geo/**'
exclude '**/modules/mapper-extras/**'
+ exclude '**/modules/mapper-version/**'
+ exclude '**/modules/percolator/**'
exclude '**/modules/rank-eval/**'
exclude '**/modules/reindex/**'
- exclude '**/modules/repository-url/**'
- exclude '**/modules/tasks/**'
- exclude '**/modules/constant-keyword/**'
- exclude '**/modules/flattened/**'
- exclude '**/modules/frozen-indices/**'
- exclude '**/modules/mapper-version/**'
exclude '**/modules/repositories-metering-api/**'
exclude '**/modules/repository-encrypted/**'
+ exclude '**/modules/repository-url/**'
+ exclude '**/modules/runtime-fields-common/**'
exclude '**/modules/search-business-rules/**'
exclude '**/modules/searchable-snapshots/**'
exclude '**/modules/snapshot-repo-test-kit/**'
exclude '**/modules/spatial/**'
exclude '**/modules/transform/**'
exclude '**/modules/unsigned-long/**'
- exclude '**/modules/vectors/**'
exclude '**/modules/vector-tile/**'
+ exclude '**/modules/vectors/**'
exclude '**/modules/wildcard/**'
exclude '**/modules/x-pack-*/**'
includeEmptyDirs = false
@@ -251,8 +266,8 @@ zip.doFirst {
}
// Check the size of the archive
zip.doLast {
- def minLength = 300000000
- def maxLength = 315000000
+ def minLength = 270000000
+ def maxLength = 285000000
def length = archiveFile.get().asFile.length()
if (length < minLength)