-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
67 lines (58 loc) · 1.79 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import io.gitlab.arturbosch.detekt.DetektPlugin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
//alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.binary.compatibility)
alias(libs.plugins.compose.compiler)
alias(libs.plugins.jetbrains.compose) apply false
alias(libs.plugins.detekt)
alias(libs.plugins.kotlin.multiplatform) apply false
//alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.m2p) apply false
}
apiValidation {
ignoredProjects += listOf()
}
detekt {
config.from(files("config/detekt/detekt.yml"))
buildUponDefaultConfig = true
parallel = true
}
allprojects {
group = "io.github.composegears"
apply<DetektPlugin>()
detekt {
buildUponDefaultConfig = true
parallel = true
autoCorrect = true
source.from(
files(
"src/commonMain/kotlin",
"src/jvmMain/kotlin",
"src/desktopMain/kotlin",
"src/androidMain/kotlin",
"src/iosMain/kotlin",
"src/wasmJsMain/kotlin",
)
)
}
dependencies {
detektPlugins(rootProject.project.libs.detekt.compose)
detektPlugins(rootProject.project.libs.detekt.formatting)
}
}
subprojects {
tasks.withType<KotlinCompile>().configureEach {
val outPath = layout.buildDirectory.dir("compose_compiler").get().asFile.absoluteFile
compilerOptions {
if (project.findProperty("composeCompilerReports") == "true") {
composeCompiler {
reportsDestination = outPath
metricsDestination = outPath
}
}
}
}
}
createM2PTask()