-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
83 lines (71 loc) · 2.61 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
buildscript {
ext.kotlin_version = '1.2.71'
ext.objectboxVersion = '2.2.0'
ext.gradleVersion = '3.2.0'
ext.navigationVersion = '1.0.0-alpha06'
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath "com.android.tools.build:gradle:$gradleVersion"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.objectbox:objectbox-gradle-plugin:$objectboxVersion"
classpath 'com.frogermcs.androiddevmetrics:androiddevmetrics-plugin:0.6'
classpath "android.arch.navigation:navigation-safe-args-gradle-plugin:$navigationVersion"
classpath "com.vanniktech:gradle-dependency-graph-generator-plugin:0.5.0"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
classpath 'com.google.firebase:firebase-plugins:1.1.5'
classpath 'io.fabric.tools:gradle:1.25.4'
classpath 'com.google.gms:google-services:4.1.0'
classpath 'org.jacoco:org.jacoco.core:0.8.2'
}
}
plugins {
id "com.palantir.jacoco-full-report" version "0.4.0"
}
apply from: 'dependencies.gradle'
//http://engineering.rallyhealth.com/android/code-coverage/testing/2018/06/04/android-code-coverage.html
apply from: rootProject.file('jacoco.gradle')
allprojects {
repositories {
google()
jcenter()
maven { url "http://objectbox.net/beta-repo/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url 'https://jitpack.io' }
maven { url "https://dl.bintray.com/lion4ik/maven" }
}
configurations {
ktlint
}
dependencies {
ktlint "com.github.shyiko:ktlint:0.28.0"
}
// https://github.com/google/dagger/issues/306
afterEvaluate {
tasks.withType(JavaCompile.class) {
options.compilerArgs << "-Xmaxerrs" << "500"
}
}
tasks.withType(Test) {
testLogging {
events TestLogEvent.FAILED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.STANDARD_ERROR,
TestLogEvent.STANDARD_OUT
exceptionFormat TestExceptionFormat.FULL
showCauses true
showExceptions true
showStackTraces true
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}