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