kotRemote/build.gradle.kts

51 lines
926 B
Text
Raw Normal View History

import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import groovy.xml.dom.DOMCategory.attributes
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
}
group = "org.bm00"
version = "1.0-SNAPSHOT"
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 {
attributes(mapOf("Main-Class" to "org.bm00.data-accessor.MainKt"))
}
}
}
val jar by tasks.getting(Jar::class) {
manifest {
attributes["Main-Class"] = "org.bm00.data-accessor.MainKt"
}
}
2024-02-16 02:25:54 -07:00
kotlin {
jvmToolchain(19)
}