kotRemote/build.gradle.kts

50 lines
883 B
Text
Raw Permalink Normal View History

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2024-02-16 02:25:54 -07:00
plugins {
kotlin("jvm") version "1.9.22"
id("com.github.johnrengelman.shadow") version "8.1.1"
2024-02-16 02:25:54 -07:00
}
2024-02-17 04:11:55 -07:00
group = "xyz.limepot"
2024-02-17 17:29:42 -07:00
version = "0.1.0-PREVIEW"
2024-02-16 02:25:54 -07:00
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test")
implementation("com.gitlab.klamonte:jexer:1.6.0")
implementation("dev.dirs:directories:26")
2024-02-16 02:25:54 -07:00
}
tasks.test {
useJUnitPlatform()
}
tasks {
build {
dependsOn(shadowJar)
}
}
tasks {
named<ShadowJar>("shadowJar") {
mergeServiceFiles()
manifest {
2024-02-17 04:16:53 -07:00
attributes(mapOf("Main-Class" to "xyz.limepot.kotRemote.MainKt"))
}
}
}
val jar by tasks.getting(Jar::class) {
manifest {
2024-02-17 04:16:53 -07:00
attributes["Main-Class"] = "xyz.limepot.kotRemote.MainKt"
}
}
2024-02-16 02:25:54 -07:00
kotlin {
jvmToolchain(19)
}