-
Notifications
You must be signed in to change notification settings - Fork 99
/
build.gradle
79 lines (67 loc) · 1.5 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
plugins {
id 'java'
id 'maven'
id 'idea'
id 'edu.sc.seis.macAppBundle' version '2.1.5'
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}
archivesBaseName = "Catacomb-Snatch"
project.group = "com.mojang.mojam"
project.version = "1.1.1-SNAPSHOT"
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
exclude '**/*.ogg'
}
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
compile fileTree( dir: 'lib', include: '*.jar')
compile 'org.lwjgl.lwjgl:lwjgl:2.9.3'
compile 'com.esotericsoftware:kryonet:2.22.0-RC1'
compile 'org.jruby:jruby:1.7.21'
compile 'org.python:jython:2.5.3'
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
jar {
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes "Main-Class" : "com.mojang.mojam.MojamStartup"
}
dependsOn "shadowJar"
}
shadowJar {
dependencies {
exclude(dependency('org.jruby:.*'))
exclude(dependency('org.python:.*'))
}
}
task run() {
dependsOn "build"
doLast {
println "Executing Catacomb Snatch!"
javaexec {
main = '-jar'
args = [ jar.archivePath ]
}
}
}
macAppBundle {
mainClassName = "com.mojang.mojam.MojamStartup"
icon = "res/art/icon/cs_icons.icns"
}