Skip to content

Commit

Permalink
gradle mavne fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed May 30, 2013
1 parent 3c17936 commit fda5dd4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 60 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ bin
local.properties
gen
target
.DS_Store
1 change: 1 addition & 0 deletions UrlImageViewHelper/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
build
.gradle
.DS_Store
4 changes: 2 additions & 2 deletions UrlImageViewHelper/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
59 changes: 1 addition & 58 deletions UrlImageViewHelper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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('[email protected]:(.*?)/(.*?).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.