-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
113 lines (98 loc) · 4.09 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import org.gradle.internal.os.OperatingSystem
// Apply the java plugin to add support for Java
apply plugin: 'java'
// Apply the application plugin to add support for building an application
apply plugin: 'application'
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
}
project.ext.lwjglVersion = '3.1.1'
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
// jcenter()
mavenCentral()
}
dependencies {
// Use Xerial as a SQLite JDBC
compile 'org.xerial:sqlite-jdbc:3.16.1'
// Use Google GSON
compile 'com.google.code.gson:gson:2.8.0'
// Use Apache Commons Lang
compile 'org.apache.commons:commons-lang3:3.5'
// This dependency is found on compile classpath of this component and consumers.
compile 'com.google.guava:guava:20.0'
// Use JUnit test framework
testCompile 'junit:junit:4.12'
// Use JWJGL
compile "org.lwjgl:lwjgl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-assimp:${lwjglVersion}"
compile "org.lwjgl:lwjgl-bgfx:${lwjglVersion}"
compile "org.lwjgl:lwjgl-egl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-glfw:${lwjglVersion}"
compile "org.lwjgl:lwjgl-jawt:${lwjglVersion}"
compile "org.lwjgl:lwjgl-jemalloc:${lwjglVersion}"
compile "org.lwjgl:lwjgl-lmdb:${lwjglVersion}"
compile "org.lwjgl:lwjgl-nanovg:${lwjglVersion}"
compile "org.lwjgl:lwjgl-nfd:${lwjglVersion}"
compile "org.lwjgl:lwjgl-nuklear:${lwjglVersion}"
compile "org.lwjgl:lwjgl-openal:${lwjglVersion}"
compile "org.lwjgl:lwjgl-opencl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-opengl:${lwjglVersion}"
compile "org.lwjgl:lwjgl-opengles:${lwjglVersion}"
// compile "org.lwjgl:lwjgl-ovr:${lwjglVersion}"
compile "org.lwjgl:lwjgl-par:${lwjglVersion}"
compile "org.lwjgl:lwjgl-sse:${lwjglVersion}"
compile "org.lwjgl:lwjgl-stb:${lwjglVersion}"
compile "org.lwjgl:lwjgl-tinyfd:${lwjglVersion}"
compile "org.lwjgl:lwjgl-vulkan:${lwjglVersion}"
compile "org.lwjgl:lwjgl-xxhash:${lwjglVersion}"
runtime "org.lwjgl:lwjgl:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-assimp:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-bgfx:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-glfw:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-jemalloc:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-lmdb:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-nanovg:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-nfd:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-nuklear:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-openal:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-opengl:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-opengles:${lwjglVersion}:${lwjglNatives}"
// runtime "org.lwjgl:lwjgl-ovr:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-par:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-sse:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-stb:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-tinyfd:${lwjglVersion}:${lwjglNatives}"
runtime "org.lwjgl:lwjgl-xxhash:${lwjglVersion}:${lwjglNatives}"
}
run {
standardInput = System.in
}
jar {
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
configurations.runtime.collect {
it.isDirectory() ? it : zipTree(it)
}
}
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'AstroExplorerText'
)
}
}
// Define the main class for the application
mainClassName = 'AstroExplorerText'