From b426dd7d8b726839bd899898b6bdd4f1ba85b8f3 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Thu, 13 Jun 2019 12:11:22 +0200 Subject: [PATCH] Output of "javadoc" build tasks should not depend on build number --- build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle b/build.gradle index 03a5884b8d4..8f8ab18efac 100644 --- a/build.gradle +++ b/build.gradle @@ -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) { -- 2.39.5