-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
45 lines (36 loc) · 998 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.4.32"
application
kotlin("kapt") version "1.4.32"
}
group = "me.hachem"
version = "1.0"
repositories {
mavenCentral()
maven("https://dl.bintray.com/kotlin/kotlinx/")
}
dependencies {
testImplementation(kotlin("test-junit"))
implementation("org.jetbrains.kotlinx", "kotlinx-cli", "0.2")
implementation("info.picocli:picocli:4.6.1")
annotationProcessor("info.picocli:picocli-codegen:4.6.1")
kapt("info.picocli:picocli-codegen:4.6.1")
}
tasks.test {
useJUnit()
}
tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
}
application {
mainClassName = "MainKt"
}
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "MainKt"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) {
exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
}
}