forked from ReactiveX/RxAndroid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
36 lines (30 loc) · 1011 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.netflix.nebula:gradle-rxjava-project-plugin:2.+'
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:2.+'
}
configurations.classpath.resolutionStrategy {
// The above dependency will bring in guava, which then pollutes child projects
force 'com.google.guava:guava:15.0'
}
}
apply plugin: 'rxjava-project'
bintrayUpload.enabled = false
def libraryModules = subprojects.findAll { it.name != 'sample-app' }
configure(libraryModules) {
apply plugin: 'rxjava-project'
apply plugin: 'java'
apply plugin: 'provided-base'
dependencies {
compile "io.reactivex:rxjava:$rxJavaVersion"
provided 'com.google.android:android:4.0.1.2'
provided 'com.google.android:support-v4:r7'
// testing
testCompile 'junit:junit-dep:4.10'
testCompile 'org.mockito:mockito-core:1.8.5'
testCompile('org.robolectric:robolectric:2.3') {
exclude group: 'com.android.support'
}
}
}