-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
35 lines (27 loc) · 987 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import org.codehaus.plexus.util.Os
plugins {
id("org.jetbrains.kotlin.jvm") version "1.6.21"
id("com.github.johnrengelman.shadow") version "7.1.2"
// id("org.graalvm.buildtools.native") version "0.9.12"
application
}
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
val gdxVersion = "1.11.0"
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.badlogicgames.gdx:gdx:$gdxVersion")
implementation("com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion")
implementation("com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
}
application {
mainClass.set("com.mlesniak.engine.MainKt")
if (Os.isFamily(Os.FAMILY_MAC)) {
applicationDefaultJvmArgs += "-XstartOnFirstThread"
}
}