aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorKengo TODA <skypencil@gmail.com>2021-09-11 19:27:25 +0800
committersonartech <sonartech@sonarsource.com>2021-10-08 20:03:10 +0000
commitd0b6b0f341c297ad06a96508d13597b00dd214a6 (patch)
tree2b3e431224b063cf4d7079ff63e4dcf3d0a70087 /sonar-application
parent6847a3b6f9b05ac53c32b628a5875f70ca0cfa15 (diff)
downloadsonarqube-d0b6b0f341c297ad06a96508d13597b00dd214a6.tar.gz
sonarqube-d0b6b0f341c297ad06a96508d13597b00dd214a6.zip
SONAR-15469 Stop using deprecated Gradle API in SonarQube
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/build.gradle8
1 files changed, 4 insertions, 4 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index 9300bb23e23..70ddc8bb2a3 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -33,8 +33,8 @@ configurations {
jar.enabled = false
shadowJar {
- baseName = 'sonar-application'
- classifier = null
+ archiveBaseName = 'sonar-application'
+ archiveClassifier = null
mergeServiceFiles()
manifest {
attributes('Main-Class': 'org.sonar.application.App')
@@ -229,9 +229,9 @@ zip.doLast {
def length = archiveFile.get().asFile.length()
if (length < minLength)
- throw new GradleException("$archiveName size ($length) too small. Min is $minLength")
+ throw new GradleException("${archiveFileName.get()} size ($length) too small. Min is $minLength")
if (length > maxLength)
- throw new GradleException("$distsDir/$archiveName size ($length) too large. Max is $maxLength")
+ throw new GradleException("${destinationDirectory.get()}/${archiveFileName.get()} size ($length) too large. Max is $maxLength")
}
assemble.dependsOn zip