aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Biais <maxime.biais@gmail.com>2015-02-06 11:32:34 +0100
committerMaxime Biais <maxime.biais@gmail.com>2015-02-06 11:32:34 +0100
commit0402aa1912ec3cdcfb471b4a393b1c638f6faa42 (patch)
treed3941d87e776144a979cc1b104e93a362e383f34
parent5a9f7e600bfe23cb636b1ec21e4735151d97168f (diff)
parent1824f636f3b3c7e35f2c03225c2ca36ed18c16c3 (diff)
downloadgradle-perf-android-medium-0402aa1912ec3cdcfb471b4a393b1c638f6faa42.tar.gz
Merge commit '1824f636f3b3c7e35f2c03225c2ca36ed18c16c3' into feature/modularize-editor
Conflicts: libs/utils/WordPressUtils/build.gradle
-rw-r--r--libs/utils/WordPressUtils/build.gradle62
-rw-r--r--libs/utils/WordPressUtils/gradle.properties-example7
-rw-r--r--libs/utils/gradle/wrapper/gradle-wrapper.properties2
3 files changed, 57 insertions, 14 deletions
diff --git a/libs/utils/WordPressUtils/build.gradle b/libs/utils/WordPressUtils/build.gradle
index 3c4ff902f..86f124cff 100644
--- a/libs/utils/WordPressUtils/build.gradle
+++ b/libs/utils/WordPressUtils/build.gradle
@@ -1,4 +1,3 @@
-
buildscript {
repositories {
mavenCentral()
@@ -10,16 +9,16 @@ buildscript {
apply plugin: 'com.android.library'
apply plugin: 'maven'
+apply plugin: 'signing'
repositories {
mavenCentral()
- maven { url 'http://wordpress-mobile.github.io/WordPress-Android' }
}
dependencies {
compile 'commons-lang:commons-lang:2.6'
- compile 'com.mcxiaoke.volley:library:1.0.+'
- compile 'com.android.support:support-v13:21.0.+'
+ compile 'com.mcxiaoke.volley:library:1.0.10'
+ compile 'com.android.support:support-v13:21.0.3'
}
android {
@@ -29,23 +28,62 @@ android {
buildToolsVersion "21.1.1"
defaultConfig {
- versionName "1.2.0"
+ versionName "1.3.0"
minSdkVersion 14
targetSdkVersion 19
}
}
+version android.defaultConfig.versionName
+group = "org.wordpress"
+archivesBaseName = "utils"
+
+signing {
+ required {
+ has("release") && project.properties.containsKey("signing.keyId") && project.properties.containsKey("signing.secretKeyRingFile")
+ }
+ sign configurations.archives
+}
+
uploadArchives {
repositories {
mavenDeployer {
- def repo_url = ""
- if (project.hasProperty("repository")) {
- repo_url = project.repository
+ beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
+
+ repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
+ authentication(userName: project.properties.ossrhUsername, password: project.properties.ossrhPassword)
+ }
+
+ snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
+ authentication(userName: project.properties.ossrhUsername, password: project.properties.ossrhPassword)
+ }
+
+ pom.project {
+ name 'WordPress-Utils-Android'
+ packaging 'aar'
+ description 'Utils lib for WordPress-Android'
+ url 'https://github.com/wordpress-mobile/WordPress-Utils-Android'
+ scm {
+ connection 'scm:git:https://github.com/wordpress-mobile/WordPress-Utils-Android.git'
+ developerConnection 'scm:git:https://github.com/wordpress-mobile/WordPress-Utils-Android.git'
+ url 'https://github.com/wordpress-mobile/WordPress-Utils-Android'
+ }
+
+ licenses {
+ license {
+ name 'The MIT License (MIT)'
+ url 'http://opensource.org/licenses/MIT'
+ }
+ }
+
+ developers {
+ developer {
+ id 'maxme'
+ name 'Maxime Biais'
+ email 'maxime@automattic.com'
+ }
+ }
}
- repository(url: repo_url)
- pom.version = android.defaultConfig.versionName
- pom.groupId = "org.wordpress"
- pom.artifactId = "wordpress-utils"
}
}
}
diff --git a/libs/utils/WordPressUtils/gradle.properties-example b/libs/utils/WordPressUtils/gradle.properties-example
index 36ceb8db2..5281d935c 100644
--- a/libs/utils/WordPressUtils/gradle.properties-example
+++ b/libs/utils/WordPressUtils/gradle.properties-example
@@ -1 +1,6 @@
-repository=file:///Users/max/work/automattic/WordPress-Android-gh-pages/
+ossrhUsername=hello
+ossrhPassword=world
+
+signing.keyId=byebye
+signing.password=secret
+signing.secretKeyRingFile=/home/user/secret.gpg
diff --git a/libs/utils/gradle/wrapper/gradle-wrapper.properties b/libs/utils/gradle/wrapper/gradle-wrapper.properties
index 2bdda831e..4a6075b96 100644
--- a/libs/utils/gradle/wrapper/gradle-wrapper.properties
+++ b/libs/utils/gradle/wrapper/gradle-wrapper.properties
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-1.11-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip