-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
62 lines (54 loc) · 1.73 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
group = "mes.inc.aic"
version = "1.0.0"
plugins {
@Suppress("DSL_SCOPE_VIOLATION")
with(libs) {
kotlin("multiplatform") version versions.kotlin apply false
kotlin("android") version versions.kotlin apply false
id("com.android.application") version versions.android.gradle.plugin apply false
id("com.android.library") version versions.android.gradle.plugin apply false
id("org.jetbrains.compose") version versions.compose.multiplatform apply false
id("com.google.devtools.ksp") version versions.ksp apply false
alias(plugins.detekt)
}
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
apply(plugin = "io.gitlab.arturbosch.detekt")
detekt {
parallel = true
ignoreFailures = false
autoCorrect = true
buildUponDefaultConfig = true
config.setFrom("${project.rootDir}/configs/detekt.yaml")
}
tasks.withType<io.gitlab.arturbosch.detekt.Detekt> detekt@{
setSource(files(project.projectDir))
exclude("**/build/**")
exclude {
it.file.relativeTo(projectDir).startsWith(project.buildDir.relativeTo(projectDir))
}
reports {
xml.required.set(true)
html.required.set(true)
txt.required.set(false)
sarif.required.set(false)
md.required.set(false)
}
}
tasks.register("detektAll") {
dependsOn(tasks.withType<io.gitlab.arturbosch.detekt.Detekt>())
}
dependencies {
detektPlugins(rootProject.libs.detekt.formatting)
}
}
buildscript {
dependencies {
classpath(libs.gradle.sqldelight)
}
}