-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
63 lines (52 loc) · 1.75 KB
/
build.gradle.kts
File metadata and controls
63 lines (52 loc) · 1.75 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
plugins {
java
application
}
group = "net.catech_software.engine"
val lwjglVersion = "3.3.4"
val jomlVersion = "1.10.7"
val lwjglNatives = listOf("natives-freebsd",
"natives-linux",
"natives-linux-arm64",
"natives-linux-arm32",
"natives-linux-ppc64le",
"natives-linux-riscv64",
"natives-macos",
"natives-macos-arm64",
"natives-windows",
"natives-windows-x86",
"natives-windows-arm64")
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
implementation(platform("org.lwjgl:lwjgl-bom:$lwjglVersion"))
implementation("org.lwjgl", "lwjgl")
implementation("org.lwjgl", "lwjgl-assimp")
implementation("org.lwjgl", "lwjgl-glfw")
implementation("org.lwjgl", "lwjgl-openal")
implementation("org.lwjgl", "lwjgl-opengl")
implementation("org.lwjgl", "lwjgl-stb")
for (native in lwjglNatives) {
runtimeOnly("org.lwjgl", "lwjgl", classifier = native)
runtimeOnly("org.lwjgl", "lwjgl-assimp", classifier = native)
runtimeOnly("org.lwjgl", "lwjgl-glfw", classifier = native)
runtimeOnly("org.lwjgl", "lwjgl-openal", classifier = native)
runtimeOnly("org.lwjgl", "lwjgl-opengl", classifier = native)
runtimeOnly("org.lwjgl", "lwjgl-stb", classifier = native)
}
implementation("org.joml", "joml", jomlVersion)
}
tasks.test {
useJUnitPlatform()
}
application {
mainClass.set("Main")
}
tasks.jar {
manifest {
attributes(mapOf("Main-Class" to application.mainClass))
}
}