-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
80 lines (63 loc) · 1.79 KB
/
build.gradle
File metadata and controls
80 lines (63 loc) · 1.79 KB
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
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: 'idea'
mainClassName = 'monkanim.AnimationBlending'
repositories {
jcenter {
url "http://jcenter.bintray.com/"
}
mavenLocal()
maven { url "https://jitpack.io" }
}
def jme3_xbuf_version = '0.8.4'
ext.jmeVersion = "[3.2,)"
project(":assets") {
apply plugin: "java"
buildDir = rootProject.file("build/assets")
sourceSets {
main {
resources {
srcDir '.'
}
}
}
}
dependencies {
compile "org.jmonkeyengine:jme3-core:$jmeVersion"
compile "org.jmonkeyengine:jme3-desktop:$jmeVersion"
compile "org.jmonkeyengine:jme3-lwjgl:$jmeVersion"
compile "com.simsilica:lemur:1.8.1"
compile "org.codehaus.groovy:groovy-all:2.4.3"
compile "com.github.xbuf.jme3_xbuf:jme3_xbuf_loader:$jme3_xbuf_version"
testCompile 'junit:junit:4.12'
runtime project(':assets')
}
task wrapper(type: Wrapper) {
}
task createDirs << {
def pkg = 'monkanim'
def dirs = [
file("./src/main/java/$pkg"),
file("./src/main/resources"),
file("./assets/Interface"),
file("./assets/MatDefs"),
file("./assets/Materials"),
file("./assets/Models"),
file("./assets/Scenes"),
file("./assets/Shaders"),
file("./assets/Sounds"),
file("./assets/Textures"),
]
dirs.each {
if (!it.exists()) {
println "Creating " + it
it.mkdirs()
}
if (it.listFiles().length == 0) {
def stub = new File(it, 'removeme.txt')
println "Creating stub file to allow git checkin, file:$stub"
stub.text = "Remove me when there are files here."
}
}
}