-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
51 lines (44 loc) · 1.18 KB
/
build.gradle
File metadata and controls
51 lines (44 loc) · 1.18 KB
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
apply from: 'buildSrc/dependencies.gradle'
repositories {
google()
mavenCentral()
}
dependencies {
classpath androidPlugin
classpath kotlinDependencies.gradlePlugin
classpath kotlinDependencies.allOpen
}
}
allprojects {
apply from: "${project.rootDir}/buildSrc/dependencies.gradle"
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
tasks.withType(Test) {
testLogging {
exceptionFormat "full"
showCauses true
showExceptions true
showStackTraces true
showStandardStreams true
events = ["passed", "skipped", "failed", "standardOut", "standardError"]
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
/**
* avoid executing test on Release build
*/
gradle.taskGraph.whenReady { graph ->
graph.allTasks.findAll { task ->
task.name.startsWith("test") && task.name.contains("ReleaseUnitTest")
}.each { task ->
task.enabled = false
}
}