-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
90 lines (76 loc) · 1.95 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
allprojects {
group = 'deco2800-2015-farm'
version = '0.3142'
}
repositories {
mavenLocal()
mavenCentral()
}
subprojects {
apply plugin: 'java';
apply plugin: 'eclipse';
apply plugin: 'idea';
apply plugin: 'jacoco';
apply plugin: 'application';
mainClassName = "farmsim.FarmSimLauncher"
repositories {
mavenLocal()
mavenCentral()
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
javadoc {
options.tags = ['require', 'ensure']
}
sourceSets {
uiTest {
java {
compileClasspath += main.output
runtimeClasspath += main.output
srcDir 'src/uiTest/java'
}
}
}
configurations {
uiTestCompile.extendsFrom testCompile
}
task uiTest(type: Test) {
testClassesDir = sourceSets.uiTest.output.classesDir
classpath = sourceSets.uiTest.runtimeClasspath
jacoco {
destinationFile = file("$buildDir/jacoco/uiTest.exec")
}
}
test.dependsOn uiTest
//options to force software rendering headlessly
test {
jvmArgs = [
// Headless Monocle implementation
"-Dglass.platform=Monocle",
"-Dmonocle.platform=Headless",
"-Dprism.order=sw",
"-Dprism.verbose=true",
"-Dprism.debugFonts=true",
// TestFX specific options
"-Dtestfx.robot=glass",
"-Dtestfx.headless=true"
]
jacoco {
destinationFile = file("$buildDir/jacoco/test.exec")
}
}
uiTest {
jvmArgs = [
// Headless Monocle implementation
"-Dglass.platform=Monocle",
"-Dmonocle.platform=Headless",
"-Dprism.order=sw",
"-Dprism.verbose=true",
"-Dprism.debugFonts=true",
// TestFX specific options
"-Dtestfx.robot=glass",
"-Dtestfx.headless=true"
]
}
}