mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 16:22:06 +01:00
Fix description of subprojects POMs file
by adding evaluationDependsOnChildren() on the root project. Thanks to Peter Niederwieser for the hint.
This commit is contained in:
parent
82654cd15e
commit
0111be1a04
1 changed files with 5 additions and 13 deletions
16
build.gradle
16
build.gradle
|
@ -91,6 +91,7 @@ description = """\
|
||||||
Smack ${version}
|
Smack ${version}
|
||||||
${oneLineDesc}."""
|
${oneLineDesc}."""
|
||||||
|
|
||||||
|
evaluationDependsOnChildren()
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'maven'
|
apply plugin: 'maven'
|
||||||
apply plugin: 'osgi'
|
apply plugin: 'osgi'
|
||||||
|
@ -116,6 +117,7 @@ subprojects {
|
||||||
archives sourcesJar
|
archives sourcesJar
|
||||||
archives javadocJar
|
archives javadocJar
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
repositories {
|
repositories {
|
||||||
mavenDeployer {
|
mavenDeployer {
|
||||||
|
@ -132,11 +134,13 @@ subprojects {
|
||||||
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pom.project {
|
pom.project {
|
||||||
name 'Smack'
|
name 'Smack'
|
||||||
packaging 'jar'
|
packaging 'jar'
|
||||||
inceptionYear '2003'
|
inceptionYear '2003'
|
||||||
url 'http://www.igniterealtime.org/projects/smack/'
|
url 'http://www.igniterealtime.org/projects/smack/'
|
||||||
|
description project.description
|
||||||
|
|
||||||
issueManagement {
|
issueManagement {
|
||||||
system 'JIRA'
|
system 'JIRA'
|
||||||
|
@ -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 getGitCommit() {
|
||||||
def dotGit = new File("$projectDir/.git")
|
def dotGit = new File("$projectDir/.git")
|
||||||
if (!dotGit.isDirectory()) return 'non-git build'
|
if (!dotGit.isDirectory()) return 'non-git build'
|
||||||
|
|
Loading…
Reference in a new issue