Skip to content

Commit

Permalink
Merge commit '1824f636f3b3c7e35f2c03225c2ca36ed18c16c3' into feature/…
Browse files Browse the repository at this point in the history
…modularize-editor

Conflicts:
	libs/utils/WordPressUtils/build.gradle
  • Loading branch information
maxme committed Feb 6, 2015
2 parents 5416f97 + 4520f51 commit f017173
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 14 deletions.
62 changes: 50 additions & 12 deletions WordPressUtils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

buildscript {
repositories {
mavenCentral()
Expand All @@ -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 {
Expand All @@ -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 '[email protected]'
}
}
}
repository(url: repo_url)
pom.version = android.defaultConfig.versionName
pom.groupId = "org.wordpress"
pom.artifactId = "wordpress-utils"
}
}
}
7 changes: 6 additions & 1 deletion WordPressUtils/gradle.properties-example
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f017173

Please sign in to comment.