forked from mockito/mockito
/
android.gradle
33 lines (30 loc) · 1.62 KB
/
android.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
description = "Mockito for Android"
apply from: "$rootDir/gradle/java-library.gradle"
dependencies {
compile(project.rootProject) {
exclude group: 'org.objenesis', module: 'objenesis'
}
compile libraries.bytebuddyandroid
compile(libraries.objenesis2) {
version {
strictly '2.6'
}
because(
'\n' +
'--------------------------------------\\ /-------------------------------------\n' +
'---------------------------------------\\ /--------------------------------------\n' +
'----------------------------------------\\ /---------------------------------------\n' +
'-----------------------------------------V----------------------------------------\n' +
'Objenesis 3.x version has method that is not supported by android api 25 and below.\n' +
'If you have mockito-android or mockito-kotlin, exclude mockito-core from them.\n' +
'implementation("com.nhaarman.mockitokotlin2:mockito-kotlin") {\n' +
' exlcude group: "org.mockito", module: "mockito-core"\n' +
'}\n' +
'-----------------------------------------A----------------------------------------\n' +
'----------------------------------------/ \\---------------------------------------\n' +
'---------------------------------------/ \\--------------------------------------\n' +
'--------------------------------------/ \\-------------------------------------\n'
)
}
}
tasks.javadoc.enabled = false