forked from tronprotocol/zksnark-java-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·106 lines (82 loc) · 2.33 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
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
group = "com.github.tronprotocol"
ext.githubProjectName = "zksnark-java-sdk"
version = project.properties["release.version"]
description = "zksnark-java-sdk."
apply plugin: "java-library"
apply plugin: "maven"
apply plugin: "maven-publish"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
// Dependency versions
// ---------------------------------------
def junitVersion = "4.12"
// --------------------------------------
repositories {
mavenCentral()
}
dependencies {
testImplementation "junit:junit:$junitVersion"
compile group: 'commons-io', name: 'commons-io', version: '2.6'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
artifacts {
archives jar
archives sourcesJar
}
install {
repositories.mavenInstaller {
pom.project {
licenses {
license {
name 'GNU Lesser General Public License v3.0'
url 'https://www.gnu.org/licenses/gpl-3.0.html'
distribution 'repo'
}
}
}
}
}
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