-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (52 loc) · 2.08 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
import org.gradle.internal.os.OperatingSystem
plugins {
// Apply the java plugin to add support for Java
id 'java'
// Apply the application plugin to add support for building an application
id 'application'
// IDE plugins
//https://docs.gradle.org/current/userguide/eclipse_plugin.html
id 'eclipse'
//https://docs.gradle.org/current/userguide/idea_plugin.html
id 'idea'
}
project.ext.lwjglVersion = "3.2.0"
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
}
// Define the main class for the application
mainClassName = 'com.github.lhrb.myshooter.Game'
// In this section you declare where to find the dependencies of your project
repositories {
// Use mavenCentral for resolving your dependencies.
mavenCentral()
}
dependencies {
//The LWJGl core library BSD license
compile "org.lwjgl:lwjgl:$lwjglVersion"
compile "org.lwjgl:lwjgl-assimp:$lwjglVersion"
compile "org.lwjgl:lwjgl-glfw:$lwjglVersion"
compile "org.lwjgl:lwjgl-openal:$lwjglVersion"
compile "org.lwjgl:lwjgl-opengl:$lwjglVersion"
compile "org.lwjgl:lwjgl-stb:$lwjglVersion"
compile "org.lwjgl:lwjgl:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-assimp:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-glfw:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-openal:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-opengl:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-stb:$lwjglVersion:$lwjglNatives"
// https://mvnrepository.com/artifact/org.l33tlabs.twl/pngdecoder
compile group: 'org.l33tlabs.twl', name: 'pngdecoder', version: '1.0'
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.23.0'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
}