-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
build.gradle
73 lines (65 loc) · 3.06 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
description 'web3j integration tests'
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/releases/' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://hyperledger.jfrog.io/artifactory/besu-maven/" }
maven { url "https://artifacts.consensys.net/public/maven/maven/" }
maven { url "https://splunk.jfrog.io/splunk/ext-releases-local" }
maven { url "https://dl.cloudsmith.io/public/consensys/quorum-mainnet-launcher/maven/" }
}
ext {
besuPluginVersion = '21.10.3'
besuInternalVersion = '21.10.3'
besuCryptoDepVersion = '0.3.0'
}
def withoutAbi = { exclude group: 'org.web3j', module: 'abi' }
dependencies {
implementation project(':core'),
project(':besu'),
project(':parity'),
project(':geth'),
project(':codegen')
testImplementation "ch.qos.logback:logback-core:$logbackVersion"
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
testImplementation "com.carrotsearch:junit-benchmarks:$junitBenchmarkVersion"
testImplementation("org.web3j:web3j-unit:$web3jUnitVersion") {
// We dont want to pull the web3j version from unit
exclude group: 'org.web3j'
}
testImplementation "org.hyperledger.besu:plugin-api:$besuPluginVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:besu:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:api:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:config:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:core:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:crypto:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:rlp:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:kvstore:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:metrics-core:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:trie:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu.internal:util:$besuInternalVersion",withoutAbi
testImplementation "org.hyperledger.besu:bls12-381:$besuCryptoDepVersion",withoutAbi
testImplementation "org.hyperledger.besu:secp256k1:$besuCryptoDepVersion",withoutAbi
}
tasks.withType(Test) {
useJUnitPlatform()
systemProperties = [
'junit.jupiter.extensions.autodetection.enabled': 'true',
'junit.jupiter.testinstance.lifecycle.default' : 'per_class'
]
}
sourceSets {
test {
java {
srcDir "$rootDir/codegen/build/resources/test/java"
}
}
}
// we don't want integration tests to run by default
test {
enabled = project.hasProperty('integration-tests') ?
project.getProperty('integration-tests') : false
dependsOn project(':codegen').getTasksByName('test', false)
}
compileTestJava {
dependsOn project(':codegen').getTasksByName("testClasses", false)
}