forked from getodk/collect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
56 lines (48 loc) · 1.47 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.google.gms:google-services:4.0.1'
classpath 'org.ow2.asm:asm:6.0' // https://github.com/jacoco/jacoco/issues/639#issuecomment-355424756
classpath 'org.jacoco:org.jacoco.core:0.8.0'
classpath 'io.fabric.tools:gradle:1.25.2'
}
}
plugins {
id 'com.github.spotbugs' version '1.6.2'
}
allprojects {
repositories {
jcenter()
maven { url = 'https://oss.sonatype.org/content/groups/public' }
maven {
url "https://maven.google.com"
}
maven { url 'https://jitpack.io' }
}
}
configurations.all {
transitive = true
}
task checkAll(type: GradleBuild) {
tasks = ['checkCode', 'checkTests']
}
task checkCode(type: GradleBuild) {
tasks = ['pmd', 'checkstyle', 'lintDebug', 'spotbugsDebug']
}
task checkTests(type: GradleBuild) {
tasks = ['testDebugUnitTest', 'connectedDebugAndroidTest']
}
ext {
// Play Services is a big download so it should only be upgraded if necessary and after
// community discussion and a warning period.
supportLibraryVersion = '27.1.1'
leakyCanaryVersion = '1.5.4'
daggerVersion = '2.16'
rxLifecycleVersion = '2.2.1'
}