From 8be4f5b086485b2a9f83f88dfb6e66eece33d949 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Tue, 10 Aug 2021 07:57:05 -0500 Subject: SONAR-15244 Despite sonar.log.useJsonOutput is enabled some logs are still not in a JSON format --- sonar-application/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sonar-application') diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle index 4edfac54339..652f8febbbe 100644 --- a/sonar-application/build.gradle +++ b/sonar-application/build.gradle @@ -108,6 +108,10 @@ task zip(type: Zip, dependsOn: [configurations.compile, downloadElasticSearch, v fcd.relativePath = new RelativePath(true, *path) } into("${archiveDir}/elasticsearch") + filesMatching('**/bin/elasticsearch-env') { + // to avoid warning logs + filter { line -> line.replaceAll('echo "warning: no-jdk distributions.*', ':') } + } // elasticsearch script will be replaced by patched version below exclude '**/bin/elasticsearch' exclude '**/bin/elasticsearch-cli' -- cgit v1.2.3