-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
46 lines (35 loc) · 1.13 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'findbugs'
version = '0.0.5'
description = 'Leader election simulator with dynamic graph visualization'
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
applicationDefaultJvmArgs = ["-Xmx4096m",
"-XX:-UseConcMarkSweepGC",
"-XX:+HeapDumpOnOutOfMemoryError"]
mainClassName = hasProperty('client') ? 'client.' + client :
'client.Visualization'
repositories { mavenCentral() }
dependencies {
compile 'org.graphstream:gs-core:1.2'
compile 'org.graphstream:gs-algo:1.2'
compile 'org.graphstream:gs-ui:1.2'
compile 'org.tinylog:tinylog:0.9.1'
compile 'com.google.guava:guava:16.0.1'
compile 'com.google.code.gson:gson:2.2.4'
testCompile 'junit:junit:4.11'
}
/*
* FindBugs - static code analysis
*/
tasks.withType(FindBugs) {
findbugsMain.onlyIf {project.properties['findbugs'].toBoolean()}
findbugsTest.onlyIf {project.properties['findbugs'].toBoolean()}
ignoreFailures = true
reports {
xml.enabled = false
html.enabled = true
}
}