Skip to content

Commit 6f9060a

Browse files
committed
Fix Bintray to use maven-publish
1 parent c650b2c commit 6f9060a

File tree

1 file changed

+40
-1
lines changed

1 file changed

+40
-1
lines changed

Parse/build.gradle

+40-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ bintray {
230230
user = System.getenv('BINTRAY_USER')
231231
key = System.getenv('BINTRAY_API_KEY')
232232

233-
configurations = ["archives"]
233+
publications = ["MyPublication"]
234234

235235
pkg {
236236
repo = 'maven'
@@ -247,4 +247,43 @@ bintray {
247247
}
248248
}
249249

250+
def pomConfig = {
251+
licenses {
252+
license {
253+
name 'BSD License'
254+
url 'https://github.com/ParsePlatform/Parse-SDK-Android/blob/master/LICENSE'
255+
distribution 'repo'
256+
}
257+
}
258+
259+
developers {
260+
developer {
261+
id 'parse'
262+
name 'Parse'
263+
}
264+
}
265+
}
266+
267+
// Create the publication with the pom configuration:
268+
apply plugin: 'maven-publish'
269+
270+
publishing {
271+
publications {
272+
MyPublication(MavenPublication) {
273+
groupId group
274+
// We have to specify it here because otherwise Bintray's plugin will assume the artifact's name is Parse
275+
artifactId artifact
276+
artifacts = [androidSourcesJar, bundleRelease]
277+
version version
278+
pom.withXml {
279+
def root = asNode()
280+
root.appendNode('description', projDescription)
281+
root.appendNode('name', projName)
282+
root.appendNode('url', gitLink)
283+
root.children().last() + pomConfig
284+
}
285+
}
286+
}
287+
}
288+
250289
// End of Bintray plugin

0 commit comments

Comments
 (0)