-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
110 lines (96 loc) · 2.35 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
plugins {
id 'org.springframework.boot' version '2.2.8.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'maven'
id 'eclipse'
id 'idea'
id 'jacoco'
}
group = 'com.webank'
version = '1.3.1'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, javadoc]*.options*.encoding = 'UTF-8'
repositories {
maven { url "http://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()
mavenCentral()
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
dependencies {
implementation('org.springframework.boot:spring-boot-starter-web')
runtime('org.springframework.boot:spring-boot-devtools')
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
compile 'cn.hutool:hutool-all:5.3.7'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
compile('com.ibeetl:beetl:2.9.3')
// web3j依赖
compile ('org.fisco-bcos:web3sdk:2.4.2')
}
test {
useJUnitPlatform()
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
all {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
}
bootJar {
destinationDir file('dist')
archiveName project.name + version + '.jar'
doLast {
copy {
from file('tools/')
into 'dist/'
}
copy {
from configurations.runtime
into 'dist/lib'
}
copy {
from file('src/main/resources/application.properties')
into 'dist/config/'
}
copy {
from file('src/main/resources/web3j.def')
into 'dist/config/'
}
copy {
from file('.').listFiles().findAll{File f -> (f.name.endsWith('.crt') || f.name.endsWith('.keystore'))}
into 'dist/config'
}
copy {
from file('config/contract/')
into 'dist/config/contract'
}
}
}
clean {
println "delete ${projectDir}/dist"
delete "${projectDir}/dist"
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport