-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (49 loc) · 1.76 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
kotlin("plugin.spring") version "1.6.10"
idea
id("org.jetbrains.kotlinx.kover") version "0.5.1"
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
id("com.github.ben-manes.versions") version "0.42.0"
}
repositories {
mavenCentral()
}
subprojects {
group = "org.example"
version = "1.0-SNAPSHOT"
apply(plugin = "idea")
apply(plugin = "org.jetbrains.kotlin.jvm")
apply(plugin = "org.jetbrains.kotlin.plugin.spring")
apply(plugin = "org.jlleitschuh.gradle.ktlint")
repositories {
mavenCentral()
}
ktlint {
version.set("0.44.0")
reporters {
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.PLAIN)
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
customReporters {
register("html") {
fileExtension = "html"
dependency = "com.pinterest.ktlint:ktlint-reporter-html:0.38.1"
}
}
}
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
}
}
kover {
generateReportOnCheck = false // false to do not execute `koverMergedReport` task before `check` task
// disabledProjects = setOf("customruleset") // setOf("project-name") to disable coverage for project with name `project-name`
runAllTestsForProjectTask = true // true to run all tests in all projects if `koverHtmlReport`, `koverXmlReport`, `koverReport`, `koverVerify` or `check` tasks executed on some project
}