-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
52 lines (46 loc) · 1.4 KB
/
build.gradle.kts
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
import org.gradle.api.tasks.testing.logging.TestLogEvent
// Adding the Google and maven repositories to all projects.
allprojects {
repositories {
google()
mavenCentral()
maven(url = "https://jitpack.io")
}
}
// Configuring the Kotlin compiler to use the experimental coroutines API and to treat all warnings as errors.
subprojects {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
// @Suppress("SuspiciousCollectionReassignment")
// freeCompilerArgs += listOf(
// "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
// )
// allWarningsAsErrors = true
}
}
// Configuring the test logging.
tasks.withType<Test> {
testLogging {
events = setOf(
TestLogEvent.STANDARD_OUT,
TestLogEvent.STARTED,
TestLogEvent.PASSED,
TestLogEvent.SKIPPED,
TestLogEvent.FAILED
)
showStandardStreams = true
}
}
}
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(Config.AndroidClassPath.gradlePlugin)
classpath(Config.AndroidClassPath.kotlinPlugin)
classpath(Config.AndroidClassPath.navigation)
classpath(Config.AndroidClassPath.daggerHilt)
}
}