This repository has been archived by the owner on Apr 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 215
/
build.gradle
73 lines (63 loc) · 2.4 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
/*
This is the GRADLE build file for LIRE.
*/
apply plugin: 'java'
apply plugin: 'project-report'
sourceCompatibility = 1.8
version = '1.0_b05'
jar {
manifest {
attributes 'Implementation-Title': 'LIRE',
'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.apache.lucene', name: 'lucene-core', version: '8.0.0'
compile group: 'org.apache.lucene', name: 'lucene-analyzers-common', version: '8.0.0'
compile group: 'org.apache.lucene', name: 'lucene-queryparser', version: '8.0.0'
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
// https://mvnrepository.com/artifact/commons-codec/commons-codec
compile group: 'commons-codec', name: 'commons-codec', version: '1.11'
// https://mvnrepository.com/artifact/com.sangupta/jopensurf
compile group: 'com.sangupta', name: 'jopensurf', version: '1.0.0'
// https://mvnrepository.com/artifact/org.bytedeco.javacpp-presets/opencv
// compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '2.4.11-0.11'
compile fileTree(dir: 'lib', include: '*.jar')
runtime fileTree(dir: 'lib', include: '*.jar')
// ---< Helper files, optional >---
// https://mvnrepository.com/artifact/com.twelvemonkeys.imageio/imageio-jpeg
runtime group: 'com.twelvemonkeys.imageio', name: 'imageio-jpeg', version: '3.4.1'
testRuntime group: 'com.twelvemonkeys.imageio', name: 'imageio-jpeg', version: '3.4.1'
// https://mvnrepository.com/artifact/junit/junit
testCompile group: 'junit', name: 'junit', version: '4.12'
}
/**
* Task for getting all the dependencies downloaded.
*/
task getDeps(type: Copy) {
from sourceSets.main.runtimeClasspath
into 'dist/lib'
}
/**
* Clean up the mess by the other tasks.
*/
clean.doFirst {
delete 'dist'
}
/**
* For now we do not use the tests given by the system.
* We'll gradually add them back again.
*/
test {
exclude 'net/semanticmetadata/lire/benchmarking/**'
exclude 'net/semanticmetadata/lire/builders/**'
exclude 'net/semanticmetadata/lire/classifiers/**'
exclude 'net/semanticmetadata/lire/indexers/**'
exclude 'net/semanticmetadata/lire/searchers/**'
exclude 'net/semanticmetadata/lire/imageanalysis/TestExtraction**'
exclude 'net/semanticmetadata/lire/TestProperties**'
}