Skip to content

Commit 6d579d9

Browse files
committed
Revert "Rename project name so that Bintray will upload it properly"
This reverts commit 5b4b16b.
1 parent b6469fc commit 6d579d9

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

Parse/build.gradle

Lines changed: 35 additions & 1 deletion
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
publish = true
236236
pkg {
@@ -277,4 +277,38 @@ def pomConfig = {
277277
}
278278
}
279279

280+
// Create the publication with the pom configuration:
281+
apply plugin: 'maven-publish'
282+
283+
publishing {
284+
publications {
285+
MyPublication(MavenPublication) {
286+
groupId group
287+
// We have to specify it here because otherwise Bintray's plugin will assume the artifact's name is Parse
288+
artifactId artifact
289+
artifacts = [androidSourcesJar, bundleRelease]
290+
version version
291+
pom.withXml {
292+
def root = asNode()
293+
root.appendNode('description', projDescription)
294+
root.appendNode('name', projName)
295+
root.appendNode('url', gitLink)
296+
root.children().last() + pomConfig
297+
298+
// maven-publish workaround to include dependencies
299+
def dependenciesNode = asNode().appendNode('dependencies')
300+
301+
//Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
302+
configurations.compile.allDependencies.each {
303+
def dependencyNode = dependenciesNode.appendNode('dependency')
304+
dependencyNode.appendNode('groupId', it.group)
305+
dependencyNode.appendNode('artifactId', it.name)
306+
dependencyNode.appendNode('version', it.version)
307+
}
308+
309+
}
310+
}
311+
}
312+
}
313+
280314
// End of Bintray plugin

ParseStarterProject/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ android {
2222
dependencies {
2323
compile "com.android.support:appcompat-v7:$supportLibVersion"
2424

25-
compile project(':parse-android')
25+
compile project(':Parse')
2626
}

settings.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
include ':Parse'
22
include ':ParseStarterProject'
33

4-
project(":Parse").name = "parse-android"

0 commit comments

Comments
 (0)