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