forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
61 lines (48 loc) · 1.58 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
description = "chainbase – a decentralized database for blockchain."
// Dependency versions
// ---------------------------------------
def jacocoVersion = "0.8.0"
def jansiVersion = "1.16"
// --------------------------------------
dependencies {
compile project(":protocol")
compile project(":common")
compile project(":crypto")
compile "org.fusesource.jansi:jansi:$jansiVersion"
compile 'io.github.tronprotocol:zksnark-java-sdk:1.0.0'
compile 'org.reflections:reflections:0.9.11'
}
test {
testLogging {
// showing skipped occasionally should prevent CI timeout due to lack of standard output
events = ["skipped", "failed"] // "started", "passed"
// showStandardStreams = true
exceptionFormat = "full"
debug.events = ["skipped", "failed"]
debug.exceptionFormat = "full"
info.events = ["failed", "skipped"]
info.exceptionFormat = "full"
warn.events = ["failed", "skipped"]
warn.exceptionFormat = "full"
}
maxHeapSize = "1200m"
if (System.getenv("CI") == null) {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}
}
jacoco {
toolVersion = jacocoVersion // See http://www.eclemma.org/jacoco/.
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
getExecutionData().setFrom(fileTree('../framework/build/jacoco').include("**.exec"))
afterEvaluate {
classDirectories.from = classDirectories.files.collect {
fileTree(dir: it,)
}
}
}
build.dependsOn jacocoTestReport