-
Notifications
You must be signed in to change notification settings - Fork 30
/
build.gradle
58 lines (48 loc) · 2 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'dependencies.gradle'
repositories {
jcenter()
}
dependencies {
classpath config.gradlePlugin
classpath config.kotlinGradlePlugin
classpath config.kotlinAndroidExtensions
classpath config.realmPlugin
}
}
allprojects {
repositories {
jcenter()
maven {
url "https://maven.google.com"
}
}
configurations.all {
resolutionStrategy {
failOnVersionConflict()
force kotlinDependencies.kotlinStdlib
force kotlinDependencies.kotlinReflect
// Since Espresso is using under the hood a lower version of the support library we currently
// use, and both, test and app dependencies need to be the same, we force to use the latest version.
// http://g.co/androidstudio/app-test-app-conflict
force "com.android.support:support-v4:26.1.0"
force supportDependencies.supportFragmentV4
force supportDependencies.supportAnnotations
force supportDependencies.supportCoreUiV4
force supportDependencies.appCompatV7
force supportDependencies.recyclerViewV7
force supportDependencies.supportDesign
force unitTestDependencies.hamcrestCore
//Espresso has an old version
force "com.google.code.findbugs:jsr305:3.0.2"
//With dexmakerMockito we have dependency version problems, so we force to use our own.
force unitTestDependencies.mockito
// It seems robolectric has conflicts with the latest version of junit we use in our app
// and the version the below library uses, so we have to force both junit and "plexus" to
// to use the latest versions
force unitTestDependencies.junit
force "org.codehaus.plexus:plexus-utils:1.5.15"
}
}
}