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