31 lines
764 B
Kotlin
31 lines
764 B
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
application
|
|
}
|
|
|
|
val gdxVersion: String by project
|
|
|
|
dependencies {
|
|
implementation(project(":core"))
|
|
implementation(project(":shared"))
|
|
implementation("com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion")
|
|
implementation("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop")
|
|
}
|
|
|
|
application {
|
|
mainClass.set("com.artlegend.DesktopLauncherKt")
|
|
applicationDefaultJvmArgs = listOf("-XstartOnFirstThread")
|
|
}
|
|
|
|
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) })
|
|
}
|