Skip to content

Commit 5d683f6

Browse files
committed
use maven plugin to deploy maven artifact
1 parent 70a91cb commit 5d683f6

File tree

4 files changed

+16
-22
lines changed

4 files changed

+16
-22
lines changed

WordPressUtils/build.gradle

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@ buildscript {
33
repositories {
44
mavenCentral()
55
}
6-
dependencies { classpath 'com.android.tools.build:gradle:0.12.+' }
6+
dependencies {
7+
classpath 'com.android.tools.build:gradle:0.12.+'
8+
}
79
}
810

911
apply plugin: 'com.android.library'
12+
apply plugin: 'maven'
1013

1114
repositories {
1215
mavenCentral()
@@ -18,7 +21,6 @@ dependencies {
1821
}
1922

2023
android {
21-
2224
compileSdkVersion 19
2325
buildToolsVersion "19.1.0"
2426

@@ -30,3 +32,14 @@ android {
3032
targetSdkVersion 19
3133
}
3234
}
35+
36+
uploadArchives {
37+
repositories {
38+
mavenDeployer {
39+
repository(url: project.repository)
40+
pom.version = android.defaultConfig.versionName
41+
pom.groupId = "org.wordpress"
42+
pom.artifactId = "wordpress-utils"
43+
}
44+
}
45+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
repository=file:///Users/max/work/automattic/WordPress-Android-gh-pages/

tools/deploy-mvn-artifact.conf-example

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/deploy-mvn-artifact.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)