-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (47 loc) · 1.23 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.20"
id("com.diffplug.spotless").version("5.8.2")
id("com.github.johnrengelman.shadow").version("6.1.0")
application
}
group = "me.nguye"
version = "1.0"
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
ktlint("0.40.0")
}
kotlinGradle {
target("*.gradle.kts")
ktlint("0.40.0")
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11"
}
application {
mainClassName = "MainKt"
}
tasks {
named<ShadowJar>("shadowJar") {
archiveBaseName.set("shadow")
mergeServiceFiles()
manifest {
attributes(mapOf("Main-Class" to application.mainClassName))
}
}
}
repositories {
jcenter()
}
dependencies {
val kotest_version = "4.3.2"
implementation("com.github.ajalt.clikt:clikt:3.1.0")
testImplementation("io.kotest:kotest-runner-junit5:$kotest_version")
testImplementation("io.kotest:kotest-assertions-core:$kotest_version")
testImplementation("io.kotest:kotest-property:$kotest_version")
}