forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
113 lines (90 loc) · 3.03 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
description = "chainbase – a decentralized database for blockchain."
// Dependency versions
// ---------------------------------------
def junitVersion = "4.12"
def mockitoVersion = "2.1.0"
def testNgVersion = "6.11"
def jacocoVersion = "0.8.0"
def leveldbVersion = "1.8"
def jansiVersion = "1.16"
// --------------------------------------
static def isWindows() {
return org.gradle.internal.os.OperatingSystem.current().isWindows()
}
if (isWindows()) {
ext {
leveldbGroup = "org.ethereum"
leveldbName = "leveldbjni-all"
leveldbVersion = "1.18.3"
}
} else {
ext {
leveldbGroup = "org.fusesource.leveldbjni"
leveldbName = "leveldbjni-all"
leveldbVersion = "1.8"
}
}
dependencies {
testImplementation "junit:junit:$junitVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.testng:testng:$testNgVersion"
compile group: leveldbGroup, name: leveldbName, version: leveldbVersion
compile "org.fusesource.jansi:jansi:$jansiVersion"
compile group: 'org.rocksdb', name: 'rocksdbjni', version: '5.15.10'
compile group: 'com.typesafe', name: 'config', version: '1.3.2'
compile 'com.github.tronprotocol:zksnark-java-sdk:master-SNAPSHOT'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.5'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.8.5'
compile project(":protocol")
compile project(":common")
compile project(":crypto")
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
}
}
task testng(type: Test) {
useTestNG()
testLogging {
events = ["skipped", "failed"]
exceptionFormat = "full"
debug.events = ["skipped", "failed"]
debug.exceptionFormat = "full"
info.events = ["failed", "skipped"]
info.exceptionFormat = "full"
warn.events = ["failed", "skipped"]
warn.exceptionFormat = "full"
}
}
check.dependsOn testng
jacoco {
toolVersion = jacocoVersion // See http://www.eclemma.org/jacoco/.
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
executionData = files('../framework/build/jacoco/jacocoTest.exec')
afterEvaluate {
classDirectories = files(classDirectories.files.collect {
fileTree(dir: it,)
})
}
}
build.dependsOn jacocoTestReport