Skip to content

Commit 5d48ed3

Browse files
committed
Add POM metadata back
1 parent 046c6e2 commit 5d48ed3

File tree

1 file changed

+30
-26
lines changed

1 file changed

+30
-26
lines changed

gradle/gradle-mvn-push.gradle

Lines changed: 30 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,6 @@ apply plugin: 'signing'
3838
def ossrhUsername = hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : System.getenv('CI_NEXUS_USERNAME')
3939
def ossrhPassword = hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : System.getenv('CI_NEXUS_PASSWORD')
4040

41-
def pomConfig = {
42-
licenses {
43-
license {
44-
name 'BSD License'
45-
url 'https://github.com/parse-community/Parse-SDK-Android/blob/master/LICENSE'
46-
distribution 'repo'
47-
}
48-
}
49-
50-
scm {
51-
connection 'scm:git@github.com:parse-community/Parse-SDK-Android.git'
52-
developerConnection 'scm:git@github.com:parse-community/Parse-SDK-Android.git'
53-
url gitLink
54-
}
55-
56-
developers {
57-
developer {
58-
id 'parse'
59-
name 'Parse'
60-
}
61-
}
62-
}
63-
6441

6542
task androidSourcesJar(type: Jar) {
6643
classifier = 'sources'
@@ -71,8 +48,6 @@ artifacts {
7148
archives androidSourcesJar
7249
}
7350

74-
//endregion
75-
7651
// Requires apply plugin: 'com.jfrog.bintray'
7752

7853
bintray {
@@ -108,6 +83,29 @@ bintray {
10883
// Create the publication with the pom configuration:
10984
apply plugin: 'digital.wup.android-maven-publish'
11085

86+
def pomConfig = {
87+
licenses {
88+
license {
89+
name 'BSD License'
90+
url 'https://github.com/parse-community/Parse-SDK-Android/blob/master/LICENSE'
91+
distribution 'repo'
92+
}
93+
}
94+
95+
scm {
96+
connection 'scm:git@github.com:parse-community/Parse-SDK-Android.git'
97+
developerConnection 'scm:git@github.com:parse-community/Parse-SDK-Android.git'
98+
url gitLink
99+
}
100+
101+
developers {
102+
developer {
103+
id 'parse'
104+
name 'Parse'
105+
}
106+
}
107+
}
108+
111109
publishing {
112110
publications {
113111
mavenAar(MavenPublication) {
@@ -117,7 +115,13 @@ publishing {
117115
artifactId artifact
118116
artifacts = [androidSourcesJar, javadocJarRelease, bundleRelease]
119117
version version
120-
118+
pom.withXml {
119+
def root = asNode()
120+
root.appendNode('description', projDescription)
121+
root.appendNode('name', projName)
122+
root.appendNode('url', gitLink)
123+
root.children().last() + pomConfig
124+
}
121125
}
122126

123127
}

0 commit comments

Comments
 (0)