aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-application/build.gradle')
-rw-r--r--sonar-application/build.gradle2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index 96df58d5d7c..a4500fe305d 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -177,7 +177,7 @@ zip.doFirst {
zip.doLast {
def minLength = 191000000
def maxLength = 199000000
- def length = new File(distsDir, archiveName).length()
+ def length = archiveFile.get().asFile.length()
if (length < minLength)
throw new GradleException("$archiveName size ($length) too small. Min is $minLength")
if (length > maxLength)