blob: 5fc561605cd76f9cc5912760ee8a4fc5655059ac (
plain)
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
|
import org.gradle.internal.jvm.Jvm
import org.robolectric.gradle.DeployedRoboJavaModulePlugin
import org.robolectric.gradle.RoboJavaModulePlugin
apply plugin: RoboJavaModulePlugin
apply plugin: DeployedRoboJavaModulePlugin
// Disable annotation processor for tests
compileTestJava {
options.compilerArgs.add("-proc:none")
}
test {
enabled = false
}
dependencies {
// Project dependencies
implementation project(":annotations")
implementation project(":shadowapi")
// Compile dependencies
implementation libs.error.prone.annotations
implementation libs.error.prone.refaster
implementation libs.error.prone.check.api
compileOnly libs.auto.service.annotations
compileOnly(AndroidSdk.MAX_SDK.coordinates)
annotationProcessor libs.auto.service
annotationProcessor libs.error.prone.core
// in jdk 9, tools.jar disappears!
def toolsJar = Jvm.current().getToolsJar()
if (toolsJar != null) {
compile files(toolsJar)
}
// Testing dependencies
testImplementation libs.junit4
testImplementation libs.truth
testImplementation(libs.error.prone.test.helpers) {
exclude group: 'junit', module: 'junit' // because it depends on a snapshot!?
}
testCompileOnly(AndroidSdk.MAX_SDK.coordinates)
}
|