-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (42 loc) · 1.65 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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'idea'
mainClassName = 'Game'
version = '0.0.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.lwjgl', name: 'lwjgl' , version:'3.3.0'
compile group: 'org.lwjgl', name: 'lwjgl-glfw' , version:'3.3.0'
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version:'3.3.0'
compile group: 'org.lwjgl', name: 'lwjgl' , version:'3.3.0', classifier:'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version:'3.3.0', classifier:'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl-glfw' , version:'3.3.0', classifier:'natives-windows'
compile group: 'org.lwjgl', name: 'lwjgl' , version:'3.3.0', classifier:'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version:'3.3.0', classifier:'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl-glfw' , version:'3.3.0', classifier:'natives-linux'
compile group: 'org.lwjgl', name: 'lwjgl' , version:'3.3.0', classifier:'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-opengl', version:'3.3.0', classifier:'natives-macos'
compile group: 'org.lwjgl', name: 'lwjgl-glfw' , version:'3.3.0', classifier:'natives-macos'
}
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'Game'
}
classifier = 'all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
sourceSets {
main {
java {
srcDirs = ["src/main/java"]
}
}
}