2026-05-04 11:44:40 -07:00
|
|
|
plugins {
|
|
|
|
|
kotlin("jvm")
|
|
|
|
|
application
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val gdxVersion: String by project
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(project(":core"))
|
2026-06-30 11:36:23 -06:00
|
|
|
implementation(project(":shared"))
|
2026-05-04 11:44:40 -07:00
|
|
|
implementation("com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion")
|
|
|
|
|
implementation("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
application {
|
|
|
|
|
mainClass.set("com.artlegend.DesktopLauncherKt")
|
2026-06-30 11:36:23 -06:00
|
|
|
applicationDefaultJvmArgs = listOf("-XstartOnFirstThread")
|
2026-05-04 11:44:40 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
|
jvmToolchain(17)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.withType<Jar> {
|
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
|
manifest {
|
|
|
|
|
attributes["Main-Class"] = "com.artlegend.DesktopLauncherKt"
|
|
|
|
|
}
|
|
|
|
|
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
|
|
|
|
|
}
|