-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
91 lines (76 loc) · 2.23 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
/*
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/2.9/userguide/tutorial_java_projects.html
*/
/** Setup the settings for all projects **/
allprojects {
group = "uq.deco2800.singularity"
version = "0.6-SNAPSHOT"
}
configurations.all {
// check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
/** Setup to apply to all sub projects **/
subprojects {
// Plugins
apply plugin: 'java';
apply plugin: 'eclipse';
apply plugin: 'idea';
apply plugin: 'jacoco';
apply plugin: 'checkstyle';
// Jacoco Settings
jacoco {
toolVersion = "0.7.7.201606060606"
}
test {
jacoco {
append = true
destinationFile = file("$projectDir/../build/jacoco/jacocoTest.exec")
classDumpFile = file("$projectDir/../build/jacoco/classdump")
}
}
// CheckStyle Settings
checkstyle {
toolVersion = "6.5"
sourceSets = []
}
// Javadoc Settings
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
javadoc {
options.tags = ['require', 'ensure']
}
// Repository and Dependency Settings
repositories {
mavenLocal()
maven { url 'http://deco2800.uqcloud.net/artifactory/libs-release/' }
}
dependencies {
// Dropwizard Framework for the entire server
compile group: 'io.dropwizard', name: 'dropwizard-core', version: '0.9.3'
compile group: 'com.esotericsoftware', name: 'kryonet', version: '2.22.0-RC1'
// 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"
}
}
}
// Force projects to be installed by build command
project(':common') {
apply plugin: 'maven';
build.finalizedBy install;
}
project(':clients') {
apply plugin: 'maven';
build.finalizedBy install;
}
project(':server') {
apply plugin: 'maven';
build.finalizedBy install;
}
task cleanJacoco(type: Delete) {
delete 'build/jacoco'
}