-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
51 lines (42 loc) · 1.42 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
import org.gradle.internal.os.OperatingSystem
plugins {
id 'java'
id 'application'
}
mainClassName = 'chess_game.Main'
dependencies {
def lwjglVersion = '3.1.1'
def platform
def os = OperatingSystem.current()
if (os.isWindows())
platform = 'windows'
else if (os.isLinux())
platform = 'linux'
else if (os.isMacOsX())
platform = 'macos'
else
throw new GradleException("Unknown operating system '" + os + "'.\nNeeds to be either Windows, Linux or macOS.")
println "Platform detected to be '" + platform + "'."
implementation group: 'org.lwjgl', name: 'lwjgl', version: lwjglVersion
implementation group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjglVersion
implementation group: 'org.lwjgl', name: 'lwjgl-opengl', version: lwjglVersion
implementation group: 'org.lwjgl', name: 'lwjgl-stb', version: lwjglVersion
runtime group: 'org.lwjgl', name: 'lwjgl', version: lwjglVersion, classifier: 'natives-' + platform
runtime group: 'org.lwjgl', name: 'lwjgl-glfw', version: lwjglVersion, classifier: 'natives-' + platform
runtime group: 'org.lwjgl', name: 'lwjgl-opengl', version: lwjglVersion, classifier: 'natives-' + platform
runtime group: 'org.lwjgl', name: 'lwjgl-stb', version: lwjglVersion, classifier: 'natives-' + platform
implementation 'org.joml:joml:1.9.2'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
}
repositories {
jcenter()
}