aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2019-03-27 16:06:20 +0100
committersonartech <sonartech@sonarsource.com>2019-03-29 09:45:00 +0100
commitcb53cd80dd1167d68caaee15cfcec058b01fff5d (patch)
treea37d015c56108b406dd2130cacc9ec447aec1863 /sonar-application
parent0c5b4644cf0ca5487516c581530c67a86bc0342f (diff)
downloadsonarqube-cb53cd80dd1167d68caaee15cfcec058b01fff5d.tar.gz
sonarqube-cb53cd80dd1167d68caaee15cfcec058b01fff5d.zip
Improve front end local build time
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/build.gradle16
1 files changed, 9 insertions, 7 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index 7c5dfe538ed..49d88885093 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -175,13 +175,15 @@ zip.doFirst {
}
// Check the size of the archive
zip.doLast {
- def minLength = 191000000
- def maxLength = 198000000
- def length = new File(distsDir, archiveName).length()
- if (length < minLength)
- throw new GradleException("$archiveName size ($length) too small. Min is $minLength")
- if (length > maxLength)
- throw new GradleException("$distsDir/$archiveName size ($length) too large. Max is $maxLength")
+ if (release) {
+ def minLength = 191000000
+ def maxLength = 198000000
+ def length = new File(distsDir, archiveName).length()
+ if (length < minLength)
+ throw new GradleException("$archiveName size ($length) too small. Min is $minLength")
+ if (length > maxLength)
+ throw new GradleException("$distsDir/$archiveName size ($length) too large. Max is $maxLength")
+ }
}
assemble.dependsOn zip