-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
103 lines (89 loc) · 2.93 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
91
92
93
94
95
96
97
98
99
100
101
102
103
allprojects {
group = 'deco2800-2016-dangernoodles'
version = '0.1'
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
subprojects {
apply plugin: 'java';
apply plugin: 'eclipse';
apply plugin: 'idea';
apply plugin: 'jacoco';
jacoco {
toolVersion = "0.7.7.201606060606"
}
test {
jacoco {
append = false
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
}
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
javadoc {
options.tags = ['require', 'ensure']
}
repositories {
mavenLocal()
maven { url 'http://deco2800-artifactory.uqcloud.net//artifactory/libs-release/' }
}
dependencies {
// DECO2800 dependencies
compile(group: 'uq.deco2800.singularity', name: 'common', version: '0' +
'.6-SNAPSHOT', changing: true)
compile(group: 'uq.deco2800.singularity', name: 'clients', version:
'0.6-SNAPSHOT', changing: true)
// Logging via Log4J 2.0 using the SLF4J API
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.12'
compile group: 'org.apache.derby', name: 'derby', version: '10.9.1.0'
// Unit testing with JUnit
testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
testCompile group: 'junit', name: 'junit', version: '4.12', {
exclude group: "org.hamcrest", module: "hamcrest-core"
}
testCompile "org.testfx:testfx-core:4.0.+"
testCompile "org.testfx:testfx-junit:4.0+"
testCompile "org.testfx:testfx-legacy:4.0.+", {
exclude group: "junit", module: "junit"
}
testCompile group: 'org.testfx', name: 'openjfx-monocle', version: '1.8.0_20'
// Mocking with Mockito
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.10.19'
testCompile group: 'org.powermock', name: 'powermock-api-mockito', version: '1.6.2'
testCompile group: 'org.powermock', name: 'powermock-module-junit4', version: '1.6.2'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'resources'
}
}
test {
java {
srcDir 'src/test/java'
}
resources {
srcDir 'resources'
}
}
}
test {
jvmArgs = [
"-Djava.awt.headless=true",
"-Dtestfx.robot=glass",
"-Dtestfx.headless=true",
"-Dprism.order=sw",
"-Dprism.text=t2K",
"-Dglass.platform=Monocle",
"-Dmonocle.platform=Headless",
"-Dprism.verbose=true",
"-Dprism.debugFonts=true"
]
}
}