forked from christianhujer/expensereport
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
127 lines (111 loc) · 3.62 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
127 lines (111 loc) · 3.62 KB
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("io.spring.dependency-management") version "1.0.11.RELEASE"
kotlin("jvm") version "1.6.10"
kotlin("plugin.jpa") version "1.6.10"
jacoco
id("info.solidsoft.pitest") version "1.7.0"
}
group = "com.nelkinda.training"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_11
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
dependencyManagement {
dependencies {
dependencySet("io.cucumber:7.3.4") {
entry("cucumber-java")
entry("cucumber-junit-platform-engine")
}
dependencySet("org.junit.jupiter:5.8.2") {
entry("junit-jupiter")
entry("junit-jupiter-api")
entry("junit-jupiter-engine")
entry("junit-jupiter-params")
}
dependencySet("org.junit.platform:1.8.2") {
entry("junit-platform-commons")
entry("junit-platform-engine")
entry("junit-platform-launcher")
entry("junit-platform-suite-api")
entry("junit-platform-suite-commons")
entry("junit-platform-suite-engine")
}
dependency("org.pitest:pitest-junit5-plugin:0.15")
dependency("org.pitest:pitest-command-line:1.8.0")
}
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("io.cucumber:cucumber-java")
testImplementation("io.cucumber:cucumber-junit-platform-engine")
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-engine")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("org.junit.platform:junit-platform-commons")
testImplementation("org.junit.platform:junit-platform-engine")
testImplementation("org.junit.platform:junit-platform-launcher")
testImplementation("org.junit.platform:junit-platform-suite-api")
testImplementation("org.junit.platform:junit-platform-suite-commons")
testImplementation("org.junit.platform:junit-platform-suite-engine")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
jacoco {
toolVersion = "0.8.7"
}
tasks.test {
finalizedBy(tasks.jacocoTestReport)
configure<JacocoTaskExtension> {
includes = listOf("com.soleilentertainment.*", "com.nelkinda.*")
}
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required.set(true)
csv.required.set(true)
html.required.set(true)
}
}
tasks.jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = "0.0".toBigDecimal()
}
}
}
}
tasks.check {
dependsOn(tasks.jacocoTestCoverageVerification)
}
configure<info.solidsoft.gradle.pitest.PitestPluginExtension> {
avoidCallsTo.set(setOf("kotlin.jvm.internal"))
targetClasses.set(setOf("com.nelkinda.training.*"))
pitestVersion.set("1.8.0")
timestampedReports.set(false)
outputFormats.set(setOf("XML", "HTML"))
mutators.set(setOf("DEFAULTS", "STRONGER", "CONSTRUCTOR_CALLS", "INLINE_CONSTS", "REMOVE_CONDITIONALS", "REMOVE_INCREMENTS"))
mutationThreshold.set(100)
coverageThreshold.set(100)
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.wrapper {
gradleVersion = "7.4.2"
distributionType = Wrapper.DistributionType.ALL
}