forked from hyperledger-web3j/web3j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (54 loc) · 1.52 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
plugins {
id 'java'
id 'idea'
id 'jacoco'
id "com.diffplug.gradle.spotless" version "3.25.0"
id 'maven-publish'
}
ext {
bouncycastleVersion = '1.61'
jacksonVersion = '2.8.5'
javaPoetVersion = '1.7.0'
kotlinPoetVersion = '1.5.0'
jnr_unixsocketVersion = '0.21'
okhttpVersion = '4.3.1'
rxjavaVersion = '2.2.2'
slf4jVersion = '1.7.25'
javaWebSocketVersion = '1.3.8'
picocliVersion = '3.0.0'
web3jUnitVersion = version
// test dependencies
equalsverifierVersion = '3.1.10'
junitVersion = '5.5.2'
junitBenchmarkVersion = '0.7.2'
logbackVersion = '1.2.3'
mockitoJunitVersion = "3.1.0"
junitPlatformLauncherVersion = "1.5.2"
}
description 'web3j base project'
allprojects {
apply {
[
'java',
'javadoc',
'repositories',
'spotless'
].each { buildScript ->
from("$rootDir/gradle/$buildScript/build.gradle")
}
}
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
useJUnitPlatform()
}
dependencies {
testCompile "org.junit.jupiter:junit-jupiter:$junitVersion"
testCompile "org.mockito:mockito-junit-jupiter:$mockitoJunitVersion"
}
if (project.name != 'integration-tests' && project.name != 'web3j') {
apply from: "$rootDir/gradle/publish/build.gradle"
}
}
configure(subprojects.findAll { it.name != 'integration-tests' }) {
apply from: "$rootDir/gradle/jacoco/build.gradle"
}