diff options
Diffstat (limited to 'lllars/llltranspiler/build.gradle.kts')
-rw-r--r-- | lllars/llltranspiler/build.gradle.kts | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/lllars/llltranspiler/build.gradle.kts b/lllars/llltranspiler/build.gradle.kts index bcb9281..c82ea21 100644 --- a/lllars/llltranspiler/build.gradle.kts +++ b/lllars/llltranspiler/build.gradle.kts @@ -1,32 +1,33 @@ - plugins { kotlin("jvm") version "2.1.0" kotlin("plugin.serialization") version "2.1.0" } +repositories { + mavenCentral() +} + group = "me.any" version = "1.0-SNAPSHOT" -tasks.withType<Jar> { - manifest { - attributes["Main-Class"] = "me.any.Main" - } -} - -repositories { - mavenCentral() +kotlin { + jvmToolchain(19) } dependencies { + implementation(kotlin("stdlib")) testImplementation(kotlin("test")) - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.0-RC") - + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") } +tasks.withType<Jar> { + manifest { + attributes["Main-Class"] = "me.any.MainKt" + } + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) +} tasks.test { useJUnitPlatform() -} -kotlin { - jvmToolchain(19) }
\ No newline at end of file |