-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
39 lines (32 loc) · 1013 Bytes
/
build.gradle.kts
File metadata and controls
39 lines (32 loc) · 1013 Bytes
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
import io.gitlab.arturbosch.detekt.Detekt
import io.gitlab.arturbosch.detekt.report.ReportMergeTask
plugins {
id("fcwfp.root-conventions")
id(libs.plugins.kover.get().pluginId)
id(libs.plugins.detekt.get().pluginId) apply false
}
dependencies { subprojects.forEach { kover(project(":${it.name}")) } }
kover { reports { total { html { onCheck = true } } } }
allprojects {
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://repo.spring.io/milestone")
}
}
val detektReportMerge by
tasks.registering(ReportMergeTask::class) {
output = project.layout.buildDirectory.file("reports/detekt/merge.sarif")
}
subprojects {
tasks {
withType<Detekt>().configureEach {
finalizedBy(detektReportMerge)
reports { sarif.required = true }
}
}
detektReportMerge {
input.from(tasks.withType<Detekt>().map { it.sarifReportFile })
}
}