forked from tronprotocol/java-tron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (63 loc) · 2.17 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
description = "consensus – a distributed consensus arithmetic for blockchain."
// Dependency versions
// ---------------------------------------
def junitVersion = "4.12"
def mockitoVersion = "2.1.0"
def testNgVersion = "6.11"
def slf4jVersion = "1.7.25"
// --------------------------------------
dependencies {
compile project(":chainbase")
compile project(":protocol")
testImplementation "junit:junit:$junitVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.testng:testng:$testNgVersion"
compile "org.slf4j:jcl-over-slf4j:$slf4jVersion"
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.69'
compile 'com.github.tronprotocol:zksnark-java-sdk:master-SNAPSHOT'
compile group: 'commons-codec', name: 'commons-codec', version: '1.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"
}
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
executionData.from = '../framework/build/jacoco/jacocoTest.exec'
afterEvaluate {
classDirectories.from = classDirectories.files.collect {
fileTree(dir: it,)
}
}
}
check.dependsOn testng