diff options
Diffstat (limited to 'sonar-application/build.gradle')
-rw-r--r-- | sonar-application/build.gradle | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle index fea954c8601..499f4e34d71 100644 --- a/sonar-application/build.gradle +++ b/sonar-application/build.gradle @@ -151,6 +151,14 @@ task zip(type: Zip, dependsOn: [configurations.compileClasspath]) { exclude 'bin/windows-x86-64/StartSonar.bat' exclude 'bin/linux-x86-64/sonar.sh' exclude 'bin/macosx-universal-64/sonar.sh' + rename { fileName -> + if (fileName == 'CVE-review-and-treatment-status-sqcb.csv') { + return "CVE-review-and-treatment-status-sqcb-${version}.csv" + } else if (fileName == 'CVE-review-and-treatment-status-sqcb.json') { + return "CVE-review-and-treatment-status-sqcb-${version}.json" + } + return fileName + } } } @@ -353,14 +361,14 @@ zip { //When the archive size increases due to dependencies, the expected size should be updated as well. //Bump the expected size by at least 10 more megabytes than what is strictly needed, this in conjunction with the //tolerance will allow for some growth in the archive size. - def expectedSize = 830_000_000 + def expectedSize = 850_000_000 //We set a tolerance of 15MB to avoid failing the build for small differences in the archive size. def tolerance = 15_000_000 def minArchiveSize = expectedSize - tolerance def maxArchiveSize = expectedSize + tolerance def archiveSize = archiveFile.get().asFile.length() - if (archiveSize < minArchiveSize) + if (archiveSize < minArchiveSize && System.getenv("CI") == "true") throw new GradleException("${archiveFileName.get()} size ($archiveSize) too small. Min is $minArchiveSize") if (archiveSize > maxArchiveSize) throw new GradleException("${destinationDirectory.get()}/${archiveFileName.get()} size ($archiveSize) too large. Max is $maxArchiveSize") |