-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconvention.multiplatform-lib.gradle.kts
More file actions
63 lines (51 loc) · 1.15 KB
/
convention.multiplatform-lib.gradle.kts
File metadata and controls
63 lines (51 loc) · 1.15 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
52
53
54
55
56
57
58
59
60
61
62
63
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
id("convention.kotlin")
id("convention.multiplatform-jvm")
id("io.gitlab.arturbosch.detekt")
id("org.jlleitschuh.gradle.ktlint")
}
kotlin {
explicitApi()
jvm()
js(IR) {
browser()
generateTypeScriptDefinitions()
nodejs()
}
@OptIn(ExperimentalWasmDsl::class)
wasmJs {
// The wasmJsBrowserTest prints all executed tests as one unformatted string
// Have not found a way to suppress printing all this into console
browser()
nodejs()
}
applyDefaultHierarchyTemplate()
macosX64()
macosArm64()
iosX64()
iosArm64()
iosSimulatorArm64()
linuxX64()
linuxArm64()
mingwX64()
}
ktlint {
version.set(VersionConstants.KTLINT_VERSION)
reporters {
reporter(ReporterType.HTML)
}
filter {
exclude("**/kotest/**/kotest.kt")
}
}
val detektAllTask by tasks.register("detektAll")
tasks.named("check").configure {
dependsOn(detektAllTask)
}
tasks.withType<Detekt> {
detektAllTask.dependsOn(this)
exclude("**/kotest/**/kotest.kt")
}