Skip to content

Commit 0896533

Browse files
committed
Merge pull request #1 from wordpress-mobile/feature/wordpress-gradle-plugin
Setting up project to use wordpress gradle plugin
2 parents 4e2672d + 6a82aab commit 0896533

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ gradle.properties
2323
.DS_Store
2424

2525
# dependencies
26-
WordPressUtils
27-
WordPressComRest
26+
libs

WordPressNetworking/build.gradle

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,19 @@ android {
2525
}
2626
}
2727

28+
wordpress {
29+
utils {
30+
repo 'WordPress-Utils-Android'
31+
subproject 'WordPressUtils'
32+
artifact 'org.wordpress:wordpress-utils:1.0.+'
33+
}
34+
wpcomrest {
35+
repo 'Automattic/android-wordpress-com-rest'
36+
subproject 'WordPressComRest'
37+
artifact 'com.automattic:wordpresscom-rest:1.0.0'
38+
}
39+
}
40+
2841
dependencies {
2942
compile 'com.mcxiaoke.volley:library:1.0.+'
30-
compile project(':WordPressComRest')
31-
compile project(':WordPressUtils')
3243
}

build.gradle

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'com.automattic.android:gradle-wordpresslibraries:1.+'
7+
}
8+
}
9+
10+
allprojects {
11+
apply plugin:'wordpress'
12+
}

settings.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
include ':WordPressNetworking', ':WordPressUtils', ':WordPressComRest'
1+
include ':WordPressNetworking'
2+
include ':libs:wpcomrest:WordPressComRest'
3+
include ':libs:utils:WordPressUtils'

0 commit comments

Comments
 (0)