-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (58 loc) · 1.19 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
plugins {
id 'application'
}
allprojects {
group = 'hello-deco'
version = '0.1'
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
repositories {
mavenCentral()
}
dependencies {
// Unit testing with JUnit
testImplementation group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
testImplementation group: 'junit', name: 'junit', version: '4.13'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
test {
java {
srcDir 'src/test/java'
}
}
}
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"
]
/* This tells gradle to log tests to the console as they are running. Note that tests
are only executed if there are changes. To force gradle to run all tests, use
'gradlew cleanTest test'
*/
testLogging {
events "failed"
exceptionFormat 'full'
}
}
application {
mainClass = 'hellodeco.HelloDeco'
}