-
Notifications
You must be signed in to change notification settings - Fork 85
/
build.gradle.kts
50 lines (44 loc) · 1.47 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
buildscript {
repositories {
google()
mavenCentral()
}
}
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.atomicfu) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.api)
}
tasks.dokkaHtmlMultiModule.configure {
outputDirectory.fileProvider(layout.buildDirectory.file("dokkaHtmlMultiModule").map { it.asFile })
}
allprojects {
group = "com.juul.kable"
repositories {
google()
mavenCentral()
}
listOf(
org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile::class,
org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon::class,
org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile::class,
org.jetbrains.kotlin.gradle.tasks.KotlinNativeCompile::class,
).forEach { kClass ->
tasks.withType(kClass).configureEach {
compilerOptions.suppressWarnings = (findProperty("suppressWarnings") as? String).toBoolean()
}
}
tasks.withType<Test>().configureEach {
testLogging {
events("started", "passed", "skipped", "failed", "standardOut", "standardError")
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showExceptions = true
showStackTraces = true
showCauses = true
}
}
}