-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
70 lines (48 loc) · 1.39 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
plugins {
id 'java-library'
id 'eclipse'
}
version '6.4.1'
defaultTasks 'clean', 'build', 'libs', 'copyResources', 'zip'
configurations {
localDeps
localRuntimes
}
dependencies {
testImplementation 'junit:junit:4.12'
compile group: 'org.elasticsearch', name: 'elasticsearch', version: version
compile 'log4j:log4j:1.2.17'
compile 'org.apache.logging.log4j:log4j-core:2.8.2'
localDeps 'com.google.guava:guava:23.0'
localDeps 'org.apache.commons:commons-math3:3.6.1'
localDeps 'com.aliyun.oss:aliyun-sdk-oss:2.8.3'
localDeps 'org.apache.commons:commons-lang3:3.7'
localRuntimes 'javax.xml.bind:jaxb-api:2.3.0'
localRuntimes 'com.sun.xml.bind:jaxb-impl:2.3.0'
localRuntimes 'com.sun.xml.bind:jaxb-core:2.3.0'
localRuntimes 'javax.activation:activation:1.1.1'
compile configurations.localDeps
runtime configurations.localRuntimes
}
repositories {
maven {
url "http://maven.aliyun.com/nexus/content/groups/public"
}
}
jar {
manifest {
attributes("Name": "repository-oss", "Version": version)
}
}
task libs(type: Copy) {
from configurations.localDeps
from configurations.localRuntimes
into "$buildDir/libs"
}
task copyResources(type: Copy){
from 'src/main/resources'
into "$buildDir/libs"
}
task zip(type: Zip) {
from "$buildDir/libs"
}