From 80629eea7936251277b5e66a754846ca1acac428 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Thu, 17 Nov 2022 15:31:12 +0100 Subject: [PATCH] SONAR-17611 Fix too much files excluded from build --- sonar-application/build.gradle | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle index 2192a0fbdec..28163b86c07 100644 --- a/sonar-application/build.gradle +++ b/sonar-application/build.gradle @@ -140,14 +140,17 @@ task zip(type: Zip, dependsOn: [configurations.compileClasspath, downloadElastic jsonFile.file.text = JsonOutput.prettyPrint(jsonText) } } - from(file('src/main/assembly')) { - exclude 'conf/sonar.properties' - exclude 'bin/windows-x86-64/lib/SonarServiceWrapperTemplate.xml' - exclude 'bin/windows-x86-64/StartSonar.bat' - exclude 'elasticsearch-patch' - exclude 'bin/linux-x86-64/sonar.sh' - exclude 'bin/macosx-universal-64/sonar.sh' - } + } + } + + into("${archiveDir}/") { + from(file('src/main/assembly')) { + exclude 'conf/sonar.properties' + exclude 'bin/windows-x86-64/lib/SonarServiceWrapperTemplate.xml' + exclude 'bin/windows-x86-64/StartSonar.bat' + exclude 'elasticsearch-patch' + exclude 'bin/linux-x86-64/sonar.sh' + exclude 'bin/macosx-universal-64/sonar.sh' } } -- 2.39.5