Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
Prepared v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
timroes committed Oct 2, 2013
1 parent ea6bed9 commit 63b7c41
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
31 changes: 22 additions & 9 deletions EnhancedListView/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ android {
apply plugin: 'maven'
apply plugin: 'signing'

version = "0.1.0"
version = "0.1.1"
group = "de.timroes.android"

configurations {
Expand All @@ -39,21 +39,33 @@ configurations {
}
}

signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}
if(project.hasProperty("EnhancedListView.properties") && new File(project.property("EnhancedListView.properties")).exists()) {

Properties props = new Properties()
props.load(new FileInputStream(file(project.property("EnhancedListView.properties"))))

gradle.taskGraph.whenReady { taskGraph ->
if (taskGraph.allTasks.any { it instanceof Sign }) {
allprojects { ext."signing.keyId" = props['signing.keyId'] }
allprojects { ext."signing.secretKeyRingFile" = props['signing.secretKeyRingFile'] }
allprojects { ext."signing.password" = props['signing.password'] }
}
}

signing {
required { has("release") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

if(project.hasProperty('sonatypeRepo') && project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
uploadArchives {

configuration = configurations.archives
repositories.mavenDeployer {

beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

repository(url: sonatypeRepo) {
authentication(userName: sonatypeUsername, password: sonatypePassword )
repository(url: props['sonatypeRepo']) {
authentication(userName: props['sonatypeUsername'], password: props['sonatypePassword'])
}

pom.project {
Expand Down Expand Up @@ -89,4 +101,5 @@ if(project.hasProperty('sonatypeRepo') && project.hasProperty('sonatypeUsername'

}
}
}

}
4 changes: 2 additions & 2 deletions EnhancedListView/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.timroes.android.listview"
android:versionCode="1"
android:versionName="0.1.0">
android:versionCode="2"
android:versionName="0.1.1">

<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="18" />

Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Fri Aug 30 00:06:34 CEST 2013
#Wed Oct 02 09:18:15 CEST 2013
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=http\://services.gradle.org/distributions/gradle-1.7-bin.zip
distributionUrl=http\://services.gradle.org/distributions/gradle-1.7-all.zip

0 comments on commit 63b7c41

Please sign in to comment.