-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
46 lines (36 loc) · 1.15 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
plugins {
id 'java'
}
group 'demo'
version '1.0-SNAPSHOT'
project.ext.lwjglVersion = "3.2.0"
project.ext.jomlVersion = "1.9.9"
project.ext.slf4jVersion = "1.7.+"
import org.gradle.internal.os.OperatingSystem
switch ( OperatingSystem.current()) {
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = "natives-windows"
break
case OperatingSystem.LINUX:
project.ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.MAC_OS:
project.ext.lwjglNatives = "natives-macos"
break
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile "org.lwjgl:lwjgl:$lwjglVersion"
compile "org.lwjgl:lwjgl-opengl:$lwjglVersion"
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.joml:joml:$jomlVersion"
compile "org.lwjgl:lwjgl-glfw:$lwjglVersion"
testCompile group: 'junit', name: 'junit', version: '4.12'
runtime "org.lwjgl:lwjgl:$lwjglVersion:$lwjglNatives"
runtime "org.lwjgl:lwjgl-opengl:$lwjglVersion:$lwjglNatives"
testRuntime "org.lwjgl:lwjgl-glfw:$lwjglVersion:$lwjglNatives"
testRuntime "org.slf4j:slf4j-simple:$slf4jVersion"
}