forked from FISCO-BCOS/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
100 lines (88 loc) · 2.34 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
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://dl.bintray.com/ethereum/maven/" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
mavenCentral()
}
List alibaba = [
'com.alibaba:druid:1.0.29',
'com.alibaba:fastjson:1.2.29'
]
List logger = [
'org.slf4j:slf4j-log4j12:1.7.25'
]
def spring_version="4.1.8.RELEASE"
List spring =[
"org.springframework:spring-core:$spring_version",
"org.springframework:spring-beans:$spring_version",
"org.springframework:spring-context:$spring_version",
"org.springframework:spring-tx:$spring_version",
"org.springframework:spring-jdbc:$spring_version",
"org.springframework:spring-test:$spring_version"
]
// In this section you declare the dependencies for your production and test code
dependencies {
compile logger,spring
runtime logger,spring
compile group:"org.fisco-bcos", name:"web3sdk", version:"2.0.3-SNAPSHOT", changing: true
// compile 'org.fisco-bcos:web3sdk:2.0.0-rc1'
compile 'org.jline:jline:3.10.0'
compile 'io.bretty:console-table-builder:1.2'
testCompile 'junit:junit:4.12'
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
jar {
destinationDir file('dist/apps')
archiveName project.name + '.jar'
exclude '**/*.xml'
exclude '**/*.properties'
exclude '**/*.crt'
exclude '**/*.key'
doLast {
copy {
from configurations.runtime
into 'dist/lib'
}
copy {
from file('src/main/resources/applicationContext-sample.xml')
from file('src/main/resources/log4j.properties')
from file('src/main/resources/privateKey.properties')
into 'dist/conf'
}
copy {
from file('tools/start.sh')
from file('tools/replace_solc_jar.sh')
into 'dist/'
}
copy {
from file('tools/sol2java.sh')
into 'dist/tools/'
}
copy {
from file('src/main/resources/contract/')
into 'dist/solidity/contracts/'
}
copy {
from file('src/main/resources/contract/Table.sol')
into 'dist/tools/contracts/'
}
}
}