39 lines
688 B
Kotlin
39 lines
688 B
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.8.10"
|
|
}
|
|
|
|
group = "nl.kallestruik"
|
|
version = "1.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.withType<KotlinCompile> {
|
|
kotlinOptions.jvmTarget = "16"
|
|
}
|
|
|
|
tasks.withType<Jar>() {
|
|
manifest {
|
|
attributes(
|
|
"Main-Class" to "MainKt"
|
|
)
|
|
}
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
|
|
|
configurations["compileClasspath"].forEach { file: File ->
|
|
from(zipTree(file.absoluteFile))
|
|
}
|
|
} |