diff options
author | Koushik Dutta <koushd@gmail.com> | 2013-05-30 11:27:36 -0700 |
---|---|---|
committer | Koushik Dutta <koushd@gmail.com> | 2013-05-30 11:27:36 -0700 |
commit | 6e175c45dbdaa53da12caa067595689b4b41182b (patch) | |
tree | 53a5f2023d239dc6c60fd8d03b159e3a9a4917ed /AndroidAsync/build.gradle | |
parent | 3b61b50593a2515cbe22df161bfea768e484f04c (diff) | |
download | AndroidAsync-6e175c45dbdaa53da12caa067595689b4b41182b.tar.gz AndroidAsync-6e175c45dbdaa53da12caa067595689b4b41182b.tar.bz2 AndroidAsync-6e175c45dbdaa53da12caa067595689b4b41182b.zip |
gradle maven fixes
Diffstat (limited to 'AndroidAsync/build.gradle')
-rw-r--r-- | AndroidAsync/build.gradle | 60 |
1 files changed, 1 insertions, 59 deletions
diff --git a/AndroidAsync/build.gradle b/AndroidAsync/build.gradle index 46e3fcf..6fcb6d1 100644 --- a/AndroidAsync/build.gradle +++ b/AndroidAsync/build.gradle @@ -31,62 +31,4 @@ android { } } - -apply plugin: 'maven' -apply plugin: 'signing' - -signing { - sign configurations.archives -} - -'git remote -v'.execute().getText().find('git@github.com:(.*?)/(.*?).git') { - match -> - user = match[1] - repo = match[2] -} - -repoInfo = new groovy.json.JsonSlurper().parseText(new URL('https://api.github.com/repos/' + ext.user + '/' + ext.repo).getText()) - -group = 'com.koushikdutta.' + repo.toLowerCase() -android_manifest = new XmlParser(false, false).parseText(new File('AndroidManifest.xml').getText()) -version = android_manifest.'@android:versionName' - -uploadArchives { - repositories { - mavenDeployer { - beforeDeployment { MavenDeployment deployment -> signPom(deployment) } - - repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication(userName: sonatypeUsername, password: sonatypePassword) - } - - pom.project { - name repo - packaging 'jar' - description repoInfo.description - url repoInfo.html_url - - scm { - url repoInfo.git_url - connection repoInfo.git_url - developerConnection repoInfo.ssh_url - } - - licenses { - license { - name 'The Apache Software License, Version 2.0' - url 'http://www.apache.org/licenses/LICENSE-2.0.txt' - distribution 'repo' - } - } - - developers { - developer { - id user - name user - } - } - } - } - } -}
\ No newline at end of file +apply from: 'https://gist.github.com/koush/5679894/raw/07b5a99fb8909b58350631c24a81f3ef732be71d/maven.gradle'
\ No newline at end of file |