-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
94 lines (83 loc) · 2.19 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
plugins {
kotlin("jvm") version "1.3.61"
jacoco
id("io.gitlab.arturbosch.detekt").version("1.3.1")
}
group = "com.eclecticlogic"
version = "1.0-SNAPSHOT"
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
repositories {
jcenter()
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.1.1")
implementation(kotlin("stdlib-jdk8"))
testImplementation("io.mockk:mockk:1.9.3")
testImplementation("org.assertj:assertj-core:3.14.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.5.2")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.5.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.5.2")
}
detekt {
toolVersion = "1.1.1"
input = files(
"src/main/kotlin",
"src/test/kotlin"
)
parallel = false
config = files("detekt/config.yml")
buildUponDefaultConfig = true
baseline = file("detekt/baseline.xml")
disableDefaultRuleSets = false
debug = false
ignoreFailures = false
reports {
xml {
enabled = false
}
html {
enabled = true // Enable/Disable HTML report (default: true)
destination = file("build/reports/detekt.html") // Path where HTML report will be stored (default: `build/reports/detekt/detekt.html`)
}
txt {
enabled = true
destination = file("build/reports/detekt.txt")
}
}
}
tasks {
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = "0.9".toBigDecimal()
}
}
}
}
jacocoTestReport {
reports {
html.isEnabled = true
}
finalizedBy("jacocoTestCoverageVerification")
}
"test"(Test::class) {
useJUnitPlatform()
testLogging {
showStandardStreams = true
events("passed", "skipped", "failed")
}
finalizedBy("jacocoTestReport")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}