Skip to content

Commit

Permalink
Rename project name so that Bintray will upload it properly
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerhu committed Apr 30, 2017
1 parent 4cd7881 commit 5b4b16b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
36 changes: 1 addition & 35 deletions Parse/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')

publications = ["MyPublication"]
configurations = ["archives"]

publish = true
pkg {
Expand Down Expand Up @@ -277,38 +277,4 @@ def pomConfig = {
}
}

// Create the publication with the pom configuration:
apply plugin: 'maven-publish'

publishing {
publications {
MyPublication(MavenPublication) {
groupId group
// We have to specify it here because otherwise Bintray's plugin will assume the artifact's name is Parse
artifactId artifact
artifacts = [androidSourcesJar, bundleRelease]
version version
pom.withXml {
def root = asNode()
root.appendNode('description', projDescription)
root.appendNode('name', projName)
root.appendNode('url', gitLink)
root.children().last() + pomConfig

// maven-publish workaround to include dependencies
def dependenciesNode = asNode().appendNode('dependencies')

//Iterate over the compile dependencies (we don't want the test ones), adding a <dependency> node for each
configurations.compile.allDependencies.each {
def dependencyNode = dependenciesNode.appendNode('dependency')
dependencyNode.appendNode('groupId', it.group)
dependencyNode.appendNode('artifactId', it.name)
dependencyNode.appendNode('version', it.version)
}

}
}
}
}

// End of Bintray plugin
2 changes: 1 addition & 1 deletion ParseStarterProject/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ android {
dependencies {
compile "com.android.support:appcompat-v7:$supportLibVersion"

compile project(':Parse')
compile project(':parse-android')
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include ':Parse'
include ':ParseStarterProject'

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

0 comments on commit 5b4b16b

Please sign in to comment.