Permalink
Browse files

gradle mavne fixes

  • Loading branch information...
1 parent 3c17936 commit fda5dd42dc7116a6461a2f8e9af576fcc1c9d5be @koush committed May 30, 2013
Showing with 5 additions and 60 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 UrlImageViewHelper/.gitignore
  3. +2 −2 UrlImageViewHelper/AndroidManifest.xml
  4. +1 −58 UrlImageViewHelper/build.gradle
View
@@ -3,3 +3,4 @@ bin
local.properties
gen
target
+.DS_Store
@@ -1,2 +1,3 @@
build
.gradle
+.DS_Store
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.koushikdutta.urlimageviewhelper"
- android:versionCode="102"
- android:versionName="1.0.2" >
+ android:versionCode="103"
+ android:versionName="1.0.3" >
<uses-sdk
android:minSdkVersion="8"
@@ -31,61 +31,4 @@ android {
}
}
-apply plugin: 'maven'
-apply plugin: 'signing'
-
-signing {
- sign configurations.archives
-}
-
-'git remote -v'.execute(null, new File(file('.').absolutePath)).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
- }
- }
- }
- }
- }
-}
+apply from: 'https://gist.github.com/koush/5679894/raw/07b5a99fb8909b58350631c24a81f3ef732be71d/maven.gradle'

0 comments on commit fda5dd4

Please sign in to comment.