-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle
110 lines (93 loc) · 2.38 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
buildscript {
ext {
springBootVersion = '2.1.2.RELEASE'
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
// classpath 'com.webank:solc-gradle-plugin:1.0-SNAPSHOT'
}
}
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'eclipse'
//apply plugin: 'solc-gradle-plugin'
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'com.webank'
version = '0.0.1-SNAPSHOT'
/*
solc{
pkg = 'com.webank.authmanager.contract'
}
*/
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()
}
def log4j_version="2.16.0"
List logger = [
"org.apache.logging.log4j:log4j-api:$log4j_version",
"org.apache.logging.log4j:log4j-to-slf4j:$log4j_version",
]
dependencies {
compile logger
compile 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompile('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
//exclude group: 'junit', module: 'junit'
}
compile ('org.fisco-bcos.java-sdk:java-sdk:2.7.0') {
exclude group: 'org.slf4j'
}
}
test {
useJUnitPlatform()
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
resources {
srcDir 'src/main/resources'
}
}
}
jar {
enabled = true
destinationDir file('dist')
archiveName project.name + '.jar'
exclude '**/*.xml'
exclude '**/*.properties'
exclude '**/*.yml'
//exclude '**/spring.factories'
from {
}
doLast {
copy {
from file('src/main/resources/')
into 'dist/config'
}
copy {
from configurations.runtime
into 'dist/lib'
}
}
}
clean {
println "delete ${projectDir}/dist"
delete "${projectDir}/dist"
}