浏览代码

Reactivate zip size check for non release build

tags/7.8
Grégoire Aubert 5 年前
父节点
当前提交
6edd73a5b4
共有 1 个文件被更改,包括 7 次插入9 次删除
  1. 7
    9
      sonar-application/build.gradle

+ 7
- 9
sonar-application/build.gradle 查看文件

@@ -175,15 +175,13 @@ zip.doFirst {
}
// Check the size of the archive
zip.doLast {
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")
}
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


正在加载...
取消
保存