-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
93 lines (81 loc) · 2.33 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
plugins {
id 'org.springframework.boot' version '2.7.12'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
id 'java'
}
group = 'com.webank'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
implementation 'org.springframework.boot:spring-boot-starter-security'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly('org.projectlombok:lombok')
testAnnotationProcessor('org.projectlombok:lombok')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation "org.yaml:snakeyaml:2.0"
implementation "com.fasterxml.jackson.core:jackson-databind:2.13.5"
implementation "org.apache.commons:commons-lang3:3.6"
implementation "commons-io:commons-io:2.11.0"
implementation 'cn.hutool:hutool-all:5.8.4'
implementation("com.google.guava:guava:31.1-jre")
// jwt
implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
// java sdk
implementation ("org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:3.1.0")
// mysql
runtimeOnly 'com.mysql:mysql-connector-j'
implementation('com.alibaba:druid:1.2.14')
}
tasks.named('test') {
useJUnitPlatform()
}
bootJar {
destinationDir file('dist')
archiveName "ddcms_" + version + '.jar'
doLast {
copy {
from file('conf')
into 'dist/conf/'
}
copy {
from configurations.runtimeClasspath
into 'dist/lib'
}
copy {
from file('src/main/resources/application.yml')
into 'dist/conf'
rename { fileName ->
fileName.replace("application", "application-example")
}
}
copy {
from file('src/main/resources/start.sh')
into 'dist/'
}
copy {
from file('src/main/resources/stop.sh')
into 'dist/'
}
}
}
clean {
println "delete ${projectDir}/dist"
delete "${projectDir}/dist"
}