-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathkotlin.build.gradle
31 lines (27 loc) · 944 Bytes
/
kotlin.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
// default setup for kotlin modules (compilation and unit testing)
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2"
}
compileKotlin {
kotlinOptions {
freeCompilerArgs += ["-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"]
allWarningsAsErrors = System.getProperty("all.warnings.as.errors", "true").toBoolean()
}
}
compileTestKotlin {
kotlinOptions {
freeCompilerArgs += ["-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"]
allWarningsAsErrors = System.getProperty("all.warnings.as.errors", "true").toBoolean()
}
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:5.7.0"
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.2'
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}