-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
75 lines (65 loc) · 2.02 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
plugins {
id 'com.github.sherter.google-java-format' version '0.8'
}
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
[compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
googleJavaFormat {
options style: 'AOSP'
source = sourceSets*.allJava
include '**/*.java'
exclude '**/temp/*.java'
}
verifyGoogleJavaFormat {
source = sourceSets*.allJava
include '**/*.java'
exclude '**/temp/*.java'
}
// 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/service/local/staging/deploy/maven2"}
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven {url "https://plugins.gradle.org/m2/"}
}
// In this section you declare the dependencies for your production and test code
dependencies {
compile 'org.slf4j:slf4j-log4j12:1.7.32'
//compile 'org.fisco-bcos:web3sdk:2.6.4'
compile 'com.fasterxml.jackson.core:jackson-databind:2.13.2.2'
compile 'com.google.guava:guava:19.0'
compile 'org.fisco-bcos.java-sdk:fisco-bcos-java-sdk:3.0.0-SNAPSHOT'
compile 'org.apache.httpcomponents:httpclient:4.5.5'
compile 'org.apache.httpcomponents:httpcore:4.4.9'
compile 'com.alibaba:fastjson:2.0.11'
}
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/main/resources/conf')
into 'dist/conf'
}
copy {
from file('src/main/resources/node')
into 'dist/conf/node'
}
copy {
from file('.').listFiles().findAll { File f -> (f.name.endsWith('.sh')) }
into 'dist'
}
}
}