forked from zengde/elasticsearch-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (49 loc) · 1.98 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
apply plugin: 'java'
group = 'com.github.zengde'
version = '2.2.0'
description = """elasticsearch-image"""
sourceCompatibility = 1.7
targetCompatibility = 1.7
configurations {
}
repositories {
jcenter()
}
sourceSets {
main {
resources.exclude '**/plugin-descriptor.properties'
}
}
dependencies {
compile(group: 'org.elasticsearch', name: 'elasticsearch', version:'2.2.0') {
exclude(module: 'junit')
}
compile group: 'com.twelvemonkeys.imageio', name: 'imageio-jpeg', version:'3.1.2'
compile group: 'com.drewnoakes', name: 'metadata-extractor', version:'2.8.1'
compile group: 'com.github.zengde', name: 'lire', version:'1.0b2'
compile(group: 'org.elasticsearch', name: 'elasticsearch', version: '2.2.0', ext: 'jar', classifier: 'tests')
testCompile(group: 'org.apache.lucene', name: 'lucene-test-framework', version:'5.4.1') {
exclude(module: 'junit')
}
testCompile group: 'log4j', name: 'log4j', version:'1.2.17'
testCompile group: 'org.elasticsearch', name: 'elasticsearch', version:'2.2.0'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version:'1.3'
testCompile(group: 'junit', name: 'junit-dep', version:'4.10') {
exclude(module: 'hamcrest-core')
}
testCompile group: 'org.apache.sanselan', name: 'sanselan', version:'0.97-incubator'
testCompile group: 'com.twelvemonkeys.imageio', name: 'imageio-tiff', version:'3.1.2'
testCompile 'net.java.dev.jna:jna:4.1.0'
}
task makeZip(type: Zip) {
description 'Assemble as es plugin zip archive to install'
from configurations.runtime.copyRecursive()
.exclude(group: 'org.elasticsearch')
.exclude(group:'org.apache.lucene'),
configurations.default.allArtifacts.files,
//sourceSets.main.resources
"src\\main\\resources\\plugin-descriptor.properties"
exclude("jopensurf*.jar")//used in local features
exclude("opencv*.jar")//used in local features
}
test.onlyIf { project.hasProperty('runtest') } //test hangs