forked from kfricilone/OpenRS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (65 loc) · 2.04 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: "com.stehno.natives"
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.stehno:gradle-natives:0.2.4"
}
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
sourceSets {
main.java.srcDir 'source'
}
dependencies {
compile 'org.imgscalr:imgscalr-lib:4.2'
compile 'org.lwjgl.lwjgl:lwjgl:2.9.3'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-windows'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-linux'
compile 'org.lwjgl.lwjgl:lwjgl-platform:2.9.3:natives-osx'
}
natives {
jars = [ 'lwjgl-platform-2.9.3-natives-windows', 'lwjgl-platform-2.9.3-natives-linux', 'lwjgl-platform-2.9.3-natives-osx' ]
}
task types(type: JavaExec, dependsOn: classes) {
description 'Dumps the config types'
main = 'net.openrs.cache.tools.TypeDumper'
classpath sourceSets.main.runtimeClasspath
}
task maps(type: JavaExec, dependsOn: classes) {
description 'Dumps the maps'
main = 'net.openrs.cache.tools.MapDumper'
classpath sourceSets.main.runtimeClasspath
}
task models(type: JavaExec, dependsOn: classes) {
description 'Dumps the models'
main = 'net.openrs.cache.tools.ModelDumper'
classpath sourceSets.main.runtimeClasspath
}
task sprites(type: JavaExec, dependsOn: classes) {
description 'Dumps the sprites'
main = 'net.openrs.cache.tools.SpriteDumper'
classpath sourceSets.main.runtimeClasspath
}
task image(type: JavaExec, dependsOn: classes) {
description 'Dumps the map image'
main = 'net.openrs.cache.tools.MapImageDumper'
classpath sourceSets.main.runtimeClasspath
}
task aggregate(type: JavaExec, dependsOn: classes) {
description 'Checks between two caches for repacking files'
main = 'net.openrs.cache.tools.CacheAggregator'
classpath sourceSets.main.runtimeClasspath
}
task defragment(type: JavaExec, dependsOn: classes) {
description 'Defragments the cache'
main = 'net.openrs.cache.tools.CacheDefragmenter'
classpath sourceSets.main.runtimeClasspath
}