forked from cho0o0/kotlin-linux-version-compare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
executable file
·52 lines (43 loc) · 1.14 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
plugins {
kotlin("jvm") version "1.3.72"
id("org.jmailen.kotlinter") version "2.4.1"
id("maven")
`java-library`
}
java {
withSourcesJar()
}
group = "com.hitoda"
version = "0.1"
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
dependencies {
testImplementation("io.kotest:kotest-runner-junit5-jvm:4.1.1") // for kotest framework
testImplementation("io.kotest:kotest-runner-console-jvm:4.1.1") // for kotest framework
testImplementation("io.kotest:kotest-assertions-core-jvm:4.1.1") // for kotest core jvm assertions
testImplementation("io.kotest:kotest-property-jvm:4.1.1") // for kotest property test
}
apply(plugin = "org.jmailen.kotlinter")
kotlinter {
ignoreFailures = false
indentSize = 4
reporters = arrayOf("checkstyle", "plain")
experimentalRules = false
disabledRules = arrayOf("no-wildcard-imports")
}