From 0111be1a041a3955a0154a25fd1767d602342ee2 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 10 May 2014 21:00:40 +0200 Subject: [PATCH] Fix description of subprojects POMs file by adding evaluationDependsOnChildren() on the root project. Thanks to Peter Niederwieser for the hint. --- build.gradle | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index ccb5e0812..9f58f5f4b 100644 --- a/build.gradle +++ b/build.gradle @@ -91,6 +91,7 @@ description = """\ Smack ${version} ${oneLineDesc}.""" +evaluationDependsOnChildren() subprojects { apply plugin: 'maven' apply plugin: 'osgi' @@ -116,6 +117,7 @@ subprojects { archives sourcesJar archives javadocJar } + uploadArchives { repositories { mavenDeployer { @@ -132,12 +134,14 @@ subprojects { authentication(userName: sonatypeUsername, password: sonatypePassword) } } + pom.project { name 'Smack' packaging 'jar' inceptionYear '2003' url 'http://www.igniterealtime.org/projects/smack/' - + description project.description + issueManagement { system 'JIRA' url 'http://issues.igniterealtime.org/browse/SMACK' @@ -187,18 +191,6 @@ subprojects { } } -// This is not really beautifully, but it's the only way I found to add -// the sub-projects description as description element to the POM -subprojects*.uploadArchives { - repositories { - mavenDeployer { - pom.project { - description project.description - } - } - } -} - def getGitCommit() { def dotGit = new File("$projectDir/.git") if (!dotGit.isDirectory()) return 'non-git build'