-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
77 lines (62 loc) · 1.82 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
import com.sun.org.apache.xalan.internal.xsltc.cmdline.Compile
apply plugin: 'java'
apply plugin: 'idea'
setEncoding(this, "UTF-8")
version = '1.1.1'
ext {
groovyVersion = '2.4.3'
javaVersion = '1.8'
gdxVersion = '1.6.0'
}
repositories {
mavenCentral()
mavenLocal()
}
def setEncoding(def build, String enc) {
println sprintf('setEncoding %s %s', enc, build)
build.tasks.withType(Compile) {
options.encoding = enc
}
build.tasks.withType(GroovyCompile) {
groovyOptions.encoding = enc
}
build.compileJava.options.encoding = enc
}
subprojects {
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
setEncoding(project, "UTF-8")
project.version = this.version
sourceCompatibility = javaVersion
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: '../libs', include: '*.jar')
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: "${groovyVersion}"
compile 'junit:junit:4.12'
compile "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
compile group: 'com.badlogicgames.gdx', name: 'gdx-box2d', version: "$gdxVersion"
compile group: 'com.badlogicgames.gdx', name: 'gdx-box2d-platform', version: "$gdxVersion", classifier: 'natives-desktop'
compile "net.namekdev.entity_tracker:artemis-entity-tracker:0.2.1"
compile "net.namekdev.entity_tracker:artemis-entity-tracker-gui:0.2.1"
}
jar {
manifest.attributes provider: 'gradle'
}
sourceSets {
main.java.srcDirs = []
main {
groovy {
srcDirs = ['src/main']
}
}
test.java.srcDirs = []
test {
groovy {
srcDirs = ['src/test']
}
}
}
}