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}")
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.encoding = 'UTF-8'
+ title = project.name + ' ' + versionWithoutBuildNumber
}
task sourcesJar(type: Jar, dependsOn: classes) {