File tree 1 file changed +40
-1
lines changed
1 file changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ bintray {
230
230
user = System . getenv(' BINTRAY_USER' )
231
231
key = System . getenv(' BINTRAY_API_KEY' )
232
232
233
- configurations = [" archives " ]
233
+ publications = [" MyPublication " ]
234
234
235
235
pkg {
236
236
repo = ' maven'
@@ -247,4 +247,43 @@ bintray {
247
247
}
248
248
}
249
249
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
+
250
289
// End of Bintray plugin
You can’t perform that action at this time.
0 commit comments