-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
96 lines (81 loc) · 2.85 KB
/
build.gradle
File metadata and controls
96 lines (81 loc) · 2.85 KB
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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.6.21'
id 'application'
id "com.github.johnrengelman.shadow" version "5.2.0"
id 'org.web3j' version '4.10.1'
}
group 'org.web3j'
version '0.1.0'
sourceCompatibility = 17
repositories {
mavenLocal()
mavenCentral()
maven { url "https://hyperledger.jfrog.io/hyperledger/besu-maven" }
maven { url "https://artifacts.consensys.net/public/maven/maven/" }
maven { url "https://splunk.jfrog.io/splunk/ext-releases-local" }
}
web3j {
generatedPackageName = 'org.web3j.generated.contracts'
excludedContracts = ['Mortal']
}
node {
nodeProjectDir.set(file("$projectDir"))
}
ext {
web3jVersion = '4.10.1'
logbackVersion = '1.2.3'
klaxonVersion = '5.5'
besuPluginVersion = '23.4.0'
besuInternalVersion = '23.4.0'
besuInternalCryptoVersion = '23.1.3'
besuCryptoDepVersion = '0.7.1'
}
dependencies {
implementation "org.web3j:core:$web3jVersion",
"ch.qos.logback:logback-core:$logbackVersion",
"ch.qos.logback:logback-classic:$logbackVersion",
"com.beust:klaxon:$klaxonVersion"
implementation "org.web3j:web3j-unit:$web3jVersion"
implementation "org.web3j:web3j-evm:$web3jVersion"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'
implementation "org.hyperledger.besu:plugin-api:$besuPluginVersion"
implementation "org.hyperledger.besu.internal:besu:$besuInternalVersion"
implementation "org.hyperledger.besu.internal:api:$besuInternalVersion"
implementation "org.hyperledger.besu:evm:$besuPluginVersion"
implementation "org.hyperledger.besu.internal:config:$besuInternalVersion"
implementation "org.hyperledger.besu.internal:core:$besuInternalVersion"
implementation "org.hyperledger.besu.internal:crypto:$besuInternalCryptoVersion"
implementation "org.hyperledger.besu.internal:rlp:$besuInternalVersion"
implementation "org.hyperledger.besu.internal:kvstore:$besuInternalVersion"
implementation "org.hyperledger.besu.internal:metrics-core:$besuInternalVersion"
implementation "org.hyperledger.besu.internal:trie:$besuInternalVersion"
implementation "org.hyperledger.besu.internal:util:$besuInternalVersion"
implementation "org.hyperledger.besu:bls12-381:$besuCryptoDepVersion"
implementation "org.hyperledger.besu:secp256k1:$besuCryptoDepVersion"
}
jar {
manifest {
attributes(
'Main-Class': 'org.web3j.Web3App',
'Multi-Release':'true'
)
}
}
application {
mainClassName = 'org.web3j.Web3App'
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
shadowJar {
zip64 = true
}