39 lines
688 B
Plaintext
39 lines
688 B
Plaintext
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||
|
|
||
|
plugins {
|
||
|
kotlin("jvm") version "1.6.20"
|
||
|
}
|
||
|
|
||
|
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))
|
||
|
}
|
||
|
}
|