-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
58 lines (45 loc) · 1.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
import io.gitlab.arturbosch.detekt.Detekt
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
id("org.jmailen.kotlinter") version "3.3.0"
id("io.gitlab.arturbosch.detekt") version "1.16.0"
}
group = "com.github.hofiisek"
version = "1.0"
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation(kotlin("reflect"))
implementation(kotlin("stdlib-jdk8"))
val kotestVersion = "4.6.3"
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest:kotest-property:$kotestVersion")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.18.1")
}
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
}
withType<Detekt> {
this.jvmTarget = "11"
}
}
tasks {
test {
useJUnitPlatform()
finalizedBy(lintKotlin)
}
}
detekt {
baseline = file("config/detekt/detekt.yml")
parallel = true // Builds the AST in parallel. Rules are always executed in parallel.
}
tasks {
withType<Wrapper> {
gradleVersion = "6.6.1"
}
}