This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
86 lines (73 loc) · 2.95 KB
/
build.gradle
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import org.apache.tools.ant.taskdefs.condition.Os
plugins {
id 'application'
}
group 'com.tridevmc'
version '0.1.0'
project.ext.lwjglVersion = "3.2.3"
project.ext.jomlVersion = "1.9.25"
if(Os.isFamily(Os.FAMILY_UNIX))
project.ext.lwjglNatives = "natives-linux"
if(Os.isFamily(Os.FAMILY_MAC))
project.ext.lwjglNatives = "natives-macos"
if(Os.isFamily(Os.FAMILY_WINDOWS))
project.ext.lwjglNatives = "natives-windows"
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://repo.spongepowered.org/maven/'
}
}
dependencies {
implementation "org.lwjgl:lwjgl:$lwjglVersion"
implementation "org.lwjgl:lwjgl-assimp:$lwjglVersion"
implementation "org.lwjgl:lwjgl-bgfx:$lwjglVersion"
implementation "org.lwjgl:lwjgl-glfw:$lwjglVersion"
implementation "org.lwjgl:lwjgl-nanovg:$lwjglVersion"
implementation "org.lwjgl:lwjgl-nuklear:$lwjglVersion"
implementation "org.lwjgl:lwjgl-openal:$lwjglVersion"
implementation "org.lwjgl:lwjgl-opengl:$lwjglVersion"
implementation "org.lwjgl:lwjgl-opus:$lwjglVersion"
implementation "org.lwjgl:lwjgl-par:$lwjglVersion"
implementation "org.lwjgl:lwjgl-stb:$lwjglVersion"
implementation "org.lwjgl:lwjgl-vulkan:$lwjglVersion"
runtimeOnly "org.lwjgl:lwjgl:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-assimp:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-bgfx:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-glfw:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-nanovg:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-nuklear:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-openal:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opengl:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-opus:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-par:$lwjglVersion:$lwjglNatives"
runtimeOnly "org.lwjgl:lwjgl-stb:$lwjglVersion:$lwjglNatives"
if(Os.isFamily(Os.FAMILY_MAC)) {
runtimeOnly "org.lwjgl:lwjgl-vulkan:$lwjglVersion:$lwjglNatives"
}
implementation "org.joml:joml:${jomlVersion}"
implementation 'org.spongepowered:noise:2.0.0-SNAPSHOT'
implementation 'org.tinylog:tinylog-api:2.2.0-M1'
implementation 'org.tinylog:tinylog-impl:2.2.0-M1'
implementation "de.javagl:obj:0.3.0"
implementation 'org.jetbrains:annotations:16.0.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
}
sourceSets.main.output.resourcesDir = "build/classes/java/main"
jar {
manifest {
attributes(
'Main-Class': 'com.tridevmc.spacegame.SpaceGame',
"Class-Path": sourceSets.main.runtimeClasspath.collect { it.getName() }.join(' ')
)
}
}
application {
mainClassName = 'com.tridevmc.spacegame.SpaceGame'
applicationDefaultJvmArgs = ['-XstartOnFirstThread']
}
test {
useJUnitPlatform()
}