forked from moonlight-stream/moonlight-android
-
Notifications
You must be signed in to change notification settings - Fork 307
Expand file tree
/
Copy pathbuild.gradle
More file actions
46 lines (41 loc) · 1.18 KB
/
Copy pathbuild.gradle
File metadata and controls
46 lines (41 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.13.0'
}
}
allprojects {
repositories {
mavenCentral()
google()
maven { url = uri("https://jitpack.io") }
}
}
// Aggregate all variant/unit tests under the root `test` task
gradle.projectsEvaluated {
def agg = tasks.findByName('test') ?: tasks.register('test') {
group = 'verification'
description = 'Runs every unit-test task in all sub-projects'
}
subprojects.each { p ->
p.tasks.matching { it.name.endsWith('UnitTest') }.all { t ->
agg.configure { dependsOn t }
}
}
}
subprojects { subProj ->
subProj.tasks.withType(Test).configureEach {
// Always execute tests; bypass up-to-date checks
outputs.upToDateWhen { false }
// Verbose console output for test status
testLogging {
events "passed", "failed", "skipped"
exceptionFormat "full"
showStandardStreams = true
}
}
}