forked from WeBankBlockchain/WeBASE-Node-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
124 lines (102 loc) · 3.07 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
group = 'com.webank.webase.node.mgr'
version = '0.0.1-SNAPSHOT'
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
// In this section you declare where to find the dependencies of your project
repositories {
maven {url "http://maven.aliyun.com/nexus/content/groups/public/"}
maven { url 'https://dl.bintray.com/ethereum/maven/' }
mavenLocal()
mavenCentral()
}
def springboot_version="2.1.2.RELEASE"
List springboot = [
"org.springframework.boot:spring-boot-starter-web:$springboot_version",
"org.springframework.boot:spring-boot-starter-log4j2:$springboot_version",
"org.springframework.boot:spring-boot-starter-security:$springboot_version",
// "org.springframework.boot:spring-boot-starter-aop:$springboot_version"
]
List jaxb = [
"javax.xml.bind:jaxb-api:2.3.0",
"com.sun.xml.bind:jaxb-impl:2.3.0",
"com.sun.xml.bind:jaxb-core:2.3.0",
"javax.activation:activation:1.1.1"
]
List web3jsdk = [
"org.fisco-bcos:web3sdk:2.0.4"
]
List lombok = [
"org.projectlombok:lombok:1.18.2"
]
List jwt = [
"io.jsonwebtoken:jjwt:0.9.1"
]
List test = [
"org.springframework.boot:spring-boot-starter-test:$springboot_version"
]
dependencies {
compile springboot,jaxb,web3jsdk,jwt
compile "org.mybatis.spring.boot:mybatis-spring-boot-starter:2.0.0"
compile "org.apache.commons:commons-lang3:3.8.1"
compile "com.alibaba:fastjson:1.2.58"
compile "mysql:mysql-connector-java:8.0.13"
compile "com.zaxxer:HikariCP:3.2.0"
compile "com.github.sgroschupf:zkclient:0.1"
compile 'org.bouncycastle:bcprov-jdk15on:1.54'
compileOnly lombok
testCompile test
}
configurations {
all*.exclude group: 'org.springframework.boot', module: 'spring-boot-starter-logging'
all*.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
all*.exclude group: 'log4j', module: 'log4j'
all*.exclude group: 'org.ow2.asm', module: 'asm'
all*.exclude group: 'jline', module: 'jline'
all*.exclude group: 'com.google.protobuf', module: 'protobuf-java'
all*.exclude group: 'javax.annotation', module: 'javax.annotation-api'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
clean {
delete 'dist'
delete 'build'
delete 'log'
}
jar {
destinationDir file('dist/apps')
archiveName project.name + '.jar'
exclude '**/*.xml'
exclude '**/*.yml'
exclude '**/*.properties'
doLast {
copy {
from file('src/main/resources/')
into 'dist/conf_template'
}
copy {
from file('script/')
into 'dist/script'
}
copy {
from configurations.runtime
into 'dist/lib'
}
copy {
from file('.').listFiles().findAll{File f -> (f.name.endsWith('.sh') || f.name.endsWith('.env'))}
into 'dist'
}
}
}