-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
126 lines (109 loc) · 3.63 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
allprojects {
group = 'deco2800-2015-mine'
version = '0.2'
}
repositories {
mavenLocal()
maven { url 'http://deco2800-artifactory.uqcloud.net/artifactory/libs-release/' }
mavenCentral()
}
// Sonar configuration for our CI server
// We use sonarHostURL as a switch -- if you specify this in gradle.properties
// then Sonar is "on" and you need to set the other properties too.
apply plugin: "sonar-runner";
if (rootProject.hasProperty('sonarHostURL')) {
sonarRunner {
sonarProperties {
property "sonar.projectName", project.group
property "sonar.host.url", sonarHostURL
property "sonar.jdbc.url", sonarDatabaseURL
property "sonar.jdbc.driverClassName", sonarDriverClassName
property "sonar.jdbc.username", sonarUsername
property "sonar.jdbc.password", sonarPassword
}
}
}
subprojects {
apply plugin: 'java';
apply plugin: 'eclipse';
apply plugin: 'idea';
apply plugin: 'jacoco';
apply plugin: 'checkstyle';
apply plugin: 'application';
apply plugin: 'groovy'
checkstyle {
toolVersion = "6.5"
sourceSets = []
}
mainClassName = "minesim.MineSim"
applicationDefaultJvmArgs = [
"-Djavafx.animation.fullspeed=true",
]
repositories {
mavenLocal()
maven { url 'http://deco2800-artifactory.uqcloud.net/artifactory/libs-release/' }
}
dependencies {
compile files("${System.properties['java.home']}/lib/ext/jfxrt.jar")
// Logging via Log4J 2.0 using the SLF4J API
compile group: 'org.slf4j', name:'slf4j-api', version: '1.7.12'
compile group: 'org.slf4j', name:'slf4j-log4j12', version: '1.7.12'
compile group: 'org.apache.derby', name: 'derby', version: '10.9.1.0'
compile group: 'deco2800-2015-marketplace', name: 'common', version: '0.+', changing: true
// Marketplace integration
compile group: 'deco2800-2015-marketplace', name: 'common', version: '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'
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
javadoc {
options.tags = ['require', 'ensure']
}
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",
"-noverify"
]
}
}