-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '1824f636f3b3c7e35f2c03225c2ca36ed18c16c3' into feature/…
…modularize-editor Conflicts: libs/utils/WordPressUtils/build.gradle
- Loading branch information
Showing
3 changed files
with
57 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 '[email protected]' | ||
} | ||
} | ||
} | ||
repository(url: repo_url) | ||
pom.version = android.defaultConfig.versionName | ||
pom.groupId = "org.wordpress" | ||
pom.artifactId = "wordpress-utils" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters