-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
72 lines (58 loc) · 1.66 KB
/
build.gradle
File metadata and controls
72 lines (58 loc) · 1.66 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
64
65
66
67
68
69
70
71
72
plugins {
id 'java'
}
group = 'org.example'
version = '1.0'
ext {
lwjglVersion = "3.3.3"
lwjglNatives = "natives-windows" // Change to "natives-linux" or "natives-macos" for other OS
jomlVersion = "1.10.0"
jomlPrimVersion = "1.10.0"
}
repositories {
mavenCentral()
}
dependencies {
// LWJGL BOM for consistent versioning
implementation platform("org.lwjgl:lwjgl-bom:$lwjglVersion")
// LWJGL core
implementation "org.lwjgl:lwjgl"
implementation "org.lwjgl:lwjgl-glfw"
implementation "org.lwjgl:lwjgl-opengl"
implementation "org.lwjgl:lwjgl-opengles"
implementation "org.lwjgl:lwjgl-stb"
// LWJGL natives
runtimeOnly "org.lwjgl:lwjgl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-glfw::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengl::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengles::$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-stb::$lwjglNatives"
// Other libraries
implementation "org.joml:joml:$jomlVersion"
implementation "org.joml:joml-primitives:$jomlPrimVersion"
implementation 'org.reflections:reflections:0.10.2'
implementation 'org.slf4j:slf4j-nop:2.0.9'
// ImGui
implementation "io.github.spair:imgui-java-app:1.89.0"
//JSON
implementation 'com.google.code.gson:gson:2.10.1'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes(
'Main-Class': 'org.PiEngine.Main'
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}