-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
78 lines (64 loc) · 1.92 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
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
id("io.gitlab.arturbosch.detekt")
//id("com.autonomousapps.dependency-analysis")
id("org.jetbrains.kotlinx.binary-compatibility-validator")
jacoco
}
// main
val kotlinVersion: String by project
val kotlinSerializationVersion: String by project
// test
val junitVersion: String by project
val jqwikVersion: String by project
// quality
val jacocoVersion: String by project
val detektVersion: String by project
group = "eu.pieland"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-libraries:$detektVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinSerializationVersion")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinSerializationVersion")
testImplementation(kotlin("test:$kotlinVersion"))
testImplementation(platform("org.junit:junit-bom:$junitVersion"))
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testImplementation("net.jqwik:jqwik-api:$jqwikVersion")
testImplementation("net.jqwik:jqwik-kotlin:$jqwikVersion")
}
tasks.test {
minHeapSize = "8g"
maxHeapSize = "16g"
useJUnitPlatform {
includeEngines("junit-jupiter", "jqwik")
excludeTags("slow")
}
}
tasks.jacocoTestReport {
dependsOn(tasks.test) // tests are required to run before generating the report
reports {
xml.required = true
html.required = false
}
}
jacoco {
toolVersion = jacocoVersion
}
kotlin {
jvmToolchain(8)
}
//dependencyAnalysis {
// issues {
// all {
// onAny {
// exclude("org.jetbrains.kotlin:kotlin-test")
// }
// }
// }
//}