2022-06-05 00:09:54 +02:00
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
2022-09-29 12:21:36 +02:00
|
|
|
kotlin("jvm") version "1.7.20"
|
2022-06-05 00:09:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "nl.kallestruik"
|
|
|
|
version = "1.0"
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-07-09 12:30:05 +02:00
|
|
|
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.5")
|
2022-06-05 00:09:54 +02:00
|
|
|
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))
|
|
|
|
}
|
|
|
|
}
|