-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
executable file
·71 lines (61 loc) · 1.72 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
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'eclipse'
sourceCompatibility = 11
targetCompatibility = 11
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
// In this section you declare where to find the dependencies of your project
repositories {
mavenCentral()
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
List logger = [
'org.slf4j:slf4j-log4j12:1.7.32'
]
def spring_version = '5.3.11'
List spring = [
"org.springframework:spring-core:$spring_version",
"org.springframework:spring-beans:$spring_version",
"org.springframework:spring-context:$spring_version",
"org.springframework:spring-tx:$spring_version",
]
// In this section you declare the dependencies for your production and test code
dependencies {
compile logger
runtime logger
compile ('org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:2.8.0-GMT0018')
compile spring
compile ('com.aol.simplereact:cyclops-react:2.0.0-FINAL')
compile ('org.apache.commons:commons-math3:3.6')
compile('com.starkbank.ellipticcurve:starkbank-ecdsa:1.0.2')
//implementation("com.oath.cyclops:cyclops:10.0.0-FINAL")
}
jar {
destinationDir file('dist/apps')
archiveName project.name + '.jar'
exclude '**/*.xml'
exclude '**/*.properties'
exclude '**/*.crt'
exclude '**/*.key'
doLast {
copy {
from configurations.runtime
into 'dist/lib'
}
copy {
from file('src/test/resources/')
into 'dist/conf'
}
copy {
from file('tool/')
into 'dist/'
}
copy {
from file('src/test/resources/contract')
into 'dist/contract'
}
}
}