-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
62 lines (50 loc) · 1.54 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 'com.github.johnrengelman.shadow' version '6.1.0'
id 'java'
id 'eclipse'
id 'idea'
id 'application'
}
group 'com.webank'
version '1.2.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
def solcVersion = rootProject.hasProperty('solcVersion') ? solcVersion : "0.6.10.0"
repositories {
mavenCentral()
maven { url "https://maven.aliyun.com/nexus/content/groups/public/"}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "https://dl.bintray.com/ethereum/maven/" }
mavenLocal()
}
def log4j_version="2.16.0"
List logger = [
"org.apache.logging.log4j:log4j-api:$log4j_version",
"org.apache.logging.log4j:log4j-core:$log4j_version",
"org.apache.logging.log4j:log4j-to-slf4j:$log4j_version",
]
dependencies {
compile logger
implementation ('com.webank:solc-gradle-plugin:1.0.1')
implementation ('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:2.9.1')
implementation group: 'info.picocli', name: 'picocli', version: '4.6.1'
implementation ("org.slf4j:slf4j-api:1.7.30")
implementation "org.fisco-bcos:solcJ:${solcVersion}"
}
shadowJar {
mainClassName = 'com.webank.scaffold.Main'
destinationDirectory = file('dist')
archiveFileName = project.name+'.jar'
exclude '**/*.DSA'
exclude '**/*.RSA'
exclude '**/*.SF'
manifestContentCharset 'utf-8'
metadataCharset 'utf-8'
from("./"){
include 'build.gradle'
}
}
clean {
println "delete ${projectDir}/dist"
delete "${projectDir}/dist"
}