-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
51 lines (42 loc) · 1.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
buildscript {
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
// Needed to use auto-value-moshi in tests
dependencies {
classpath 'com.github.tbroyer:gradle-apt-plugin:v0.12'
}
}
repositories {
mavenCentral()
}
apply plugin: 'net.ltgt.apt-idea'
apply plugin: 'java'
apply from: rootProject.file('dependencies.gradle')
apply from: rootProject.file('checkstyle.gradle')
apply from: rootProject.file('jacoco.gradle')
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
sourceSets {
// Setup source sets to split unit and integration tests
test {
java.srcDirs = ['src/unitTest/java', 'src/integrationTest/java']
resources.srcDirs = ['src/unitTest/resources', 'src/integrationTest/resources']
}
}
dependencies {
compile moshi
testCompile junit
testCompile assertJ
testCompile privateConstructorChecker
testCompile retrofit
testCompile retrofitMoshiConverter
testCompile mockWebServer
testCompile rxJava2
// This is needed to test integration with auto-value-moshi
testCompileOnly autoValueMoshiAnnotations
testCompileOnly autoValueAnnotations
testApt autoValueMoshi
}