-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
113 lines (98 loc) · 2.94 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
buildscript {
repositories {
mavenCentral()
maven { url "https://maven.aliyun.com/nexus/content/groups/public/"}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.1.1.RELEASE")
}
}
plugins {
id 'org.springframework.boot' version '2.1.1.RELEASE'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'org.main'
version = '1.0.0-SNAPSHOT'
repositories {
mavenLocal()
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/" }
maven { url "https://oss.sonatype.org/service/local/staging/deploy/maven2"}
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
all {
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'io.jsonwebtoken:jjwt-api:0.11.3'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.3'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.3'
implementation 'ognl:ognl:3.1.12'
implementation 'org.slf4j:slf4j-api:1.7.5'
implementation group: 'org.mapstruct', name: 'mapstruct-processor', version: '1.3.0.Beta1'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:2.9.1') {
exclude group: 'org.slf4j'
}
implementation('com.webank:weid-java-sdk:1.8.6-rc1') {
exclude group: 'ch.qos.logback', module: 'logback-classic'
exclude group: 'org.slf4j', module: 'slf4j-api'
exclude group: 'org.apache.logging.log4j', module: 'log4j-slf4j-impl'
}
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
test {
useJUnitPlatform()
}
tasks.named('test') {
useJUnitPlatform()
}
bootJar {
destinationDir file('dist')
archiveName project.name + '-exec.jar'
doLast {
copy {
from file('src/main/resources')
into 'dist'
}
}
}
configurations.all {
resolutionStrategy {
force 'io.netty:netty-all:4.1.53.Final'
}
}
clean {
println "delete ${projectDir}/dist"
delete "${projectDir}/dist"
}