2024-02-16 02:41:36 -07:00
|
|
|
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"
|
2024-02-16 02:41:36 -07:00
|
|
|
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")
|
2024-02-16 02:41:36 -07:00
|
|
|
|
|
|
|
implementation("com.gitlab.klamonte:jexer:1.6.0")
|
|
|
|
|
|
|
|
implementation("dev.dirs:directories:26")
|
2024-02-16 02:25:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2024-02-16 02:41:36 -07:00
|
|
|
|
|
|
|
tasks {
|
|
|
|
build {
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
named<ShadowJar>("shadowJar") {
|
|
|
|
mergeServiceFiles()
|
|
|
|
manifest {
|
2024-02-16 03:19:36 -07:00
|
|
|
attributes(mapOf("Main-Class" to "org.bm00.DataAccessor.MainKt"))
|
2024-02-16 02:41:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
val jar by tasks.getting(Jar::class) {
|
|
|
|
manifest {
|
2024-02-16 03:19:36 -07:00
|
|
|
attributes["Main-Class"] = "org.bm00.DataAccessor.MainKt"
|
2024-02-16 02:41:36 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-16 02:25:54 -07:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain(19)
|
|
|
|
}
|