add readme n shit
This commit is contained in:
parent
5e0e2288b9
commit
bfc595dc16
6 changed files with 51 additions and 13 deletions
|
|
@ -1,17 +1,17 @@
|
|||
plugins {
|
||||
kotlin("jvm") version "2.1.20"
|
||||
kotlin("plugin.serialization") version "2.1.21"
|
||||
application
|
||||
}
|
||||
|
||||
group = "me.koendev"
|
||||
version = "1.0-SNAPSHOT"
|
||||
version = "1.0.0"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(files("../Utils-latest.jar"))
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.8.1")
|
||||
implementation("de.thelooter:toml4j:0.8.1")
|
||||
}
|
||||
|
|
@ -21,4 +21,24 @@ tasks.test {
|
|||
}
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
}
|
||||
|
||||
application.mainClass = "me.koendev.MainKt"
|
||||
|
||||
tasks.withType<Jar> {
|
||||
// Otherwise you'll get a "No main manifest attribute" error
|
||||
manifest {
|
||||
attributes["Main-Class"] = "me.koendev.MainKt"
|
||||
}
|
||||
|
||||
// To avoid the duplicate handling strategy error
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
|
||||
// To add all of the dependencies otherwise a "NoClassDefFoundError" error
|
||||
from(sourceSets.main.get().output)
|
||||
|
||||
dependsOn(configurations.runtimeClasspath)
|
||||
from({
|
||||
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue