-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
63 lines (50 loc) · 1.33 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
application
kotlin("jvm") version "1.3.31"
id("com.github.johnrengelman.shadow") version "5.0.0"
}
group = "xyz.pavelkorolev.bladerunner"
version = "1.0.0"
application {
mainClassName = "$group.MainKt"
}
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("com.github.ajalt:clikt:2.4.0")
implementation("com.drewnoakes:metadata-extractor:2.13.0")
testImplementation("org.assertj:assertj-core:3.12.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.4.2")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
setExceptionFormat("full")
showExceptions = true
showCauses = true
showStackTraces = true
showStandardStreams = false
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<Jar> {
archiveFileName.set("bladerunner-${archiveVersion.get()}.jar")
manifest {
attributes(
mapOf(
"Main-Class" to application.mainClassName
)
)
}
}