-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
82 lines (71 loc) · 1.92 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
buildscript {
repositories {
maven {
url "http://maven.aliyun.com/nexus/content/groups/public/"
}
maven {
url "https://plugins.gradle.org/m2/"
}
mavenLocal()
mavenCentral()
}
}
apply plugin: 'maven'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
group 'com.webank.weevent'
version '1.0.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
}
def log4j_version = "2.13.3";
List log4j = [
"org.apache.logging.log4j:log4j-api:$log4j_version",
"org.apache.logging.log4j:log4j-web:$log4j_version",
"org.apache.logging.log4j:log4j-core:$log4j_version",
"org.apache.logging.log4j:log4j-jcl:$log4j_version",
"org.apache.logging.log4j:log4j-slf4j-impl:$log4j_version",
"org.slf4j:slf4j-api:1.7.30"
]
dependencies {
// slf4j logger
compile log4j
// lombok
compileOnly 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
// weevent-client
compile "com.webank.weevent:weevent-client:1.6.0"
// weevent-file
compile "com.webank.weevent:weevent-file:1.6.0"
// compile fileTree(dir: "lib", include: ['*.jar'])
}
jar {
destinationDir file("dist/apps")
archiveName project.name + "-" + version + ".jar"
exclude '**/*.properties'
doLast {
copy {
from file("src/main/resources/")
into "dist/conf"
}
copy {
from configurations.runtime
into "dist/lib"
}
copy {
from file("build/libs/")
into "dist/apps"
}
copy {
from file('.').listFiles().findAll { File f -> (f.name.endsWith('.sh') || f.name.endsWith('.env')) }
into 'dist'
}
}
}
clean {
delete("dist")
}