diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2019-05-09 21:49:39 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2019-05-10 20:21:40 +0200 |
commit | b13cd1f7af19660bd208871aba234cb596eaf8e7 (patch) | |
tree | 480aa658a96b90211bed42341ca3ad4fcb995d30 | |
parent | 45ef13fe96c145e70571d5065b6692a974b52d23 (diff) | |
download | sonarqube-b13cd1f7af19660bd208871aba234cb596eaf8e7.tar.gz sonarqube-b13cd1f7af19660bd208871aba234cb596eaf8e7.zip |
Do not use deprecated Gradle properties "distsDir" and "archiveName"
-rw-r--r-- | sonar-application/build.gradle | 2 |
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) |