]> source.dussan.org Git - sonarqube.git/commitdiff
Output of "javadoc" build tasks should not depend on build number
authorEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 13 Jun 2019 10:11:22 +0000 (12:11 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 28 Jun 2019 06:45:47 +0000 (08:45 +0200)
build.gradle

index 03a5884b8d4bf0ffefe3b52eb23c499ff970857d..8f8ab18efacd2682464c5fac2459d9ad9b274239 100644 (file)
@@ -54,6 +54,7 @@ allprojects {
   apply plugin: 'maven-publish'
 
   ext.buildNumber = System.getProperty("buildNumber")
+  ext.versionWithoutBuildNumber = version
   // Replaces the version defined in sources, usually x.y-SNAPSHOT, by a version identifying the build.
   if (version.endsWith('-SNAPSHOT') && ext.buildNumber != null) {
     def versionSuffix = (version.toString().count('.') == 1 ? ".0.${ext.buildNumber}" : ".${ext.buildNumber}")
@@ -262,6 +263,7 @@ subprojects {
   tasks.withType(Javadoc) {
     options.addStringOption('Xdoclint:none', '-quiet')
     options.encoding = 'UTF-8'
+    title = project.name + ' ' + versionWithoutBuildNumber
   }
 
   task sourcesJar(type: Jar, dependsOn: classes) {