forked from dermotte/LIRE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
71 lines (60 loc) · 1.91 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
/*
This is the GRADLE build file for LIRE.
*/
apply plugin: 'java'
apply plugin: 'project-report'
sourceCompatibility = 16
version = '1.0_b07'
jar {
manifest {
attributes 'Implementation-Title': 'LIRE',
'Implementation-Version': archiveVersion
}
}
repositories {
mavenCentral()
}
dependencies {
// ---< Lucene >---
implementation 'org.apache.lucene:lucene-core:8.9.0'
implementation 'org.apache.lucene:lucene-analyzers-common:8.9.0'
implementation 'org.apache.lucene:lucene-queryparser:8.9.0'
implementation 'org.apache.lucene:lucene-queries:8.9.0'
implementation 'org.apache.lucene:lucene-backward-codecs:8.9.0'
// ---< Commons >---
implementation 'commons-io:commons-io:2.6'
implementation 'org.apache.commons:commons-math3:3.6.1'
implementation 'commons-codec:commons-codec:1.11'
implementation 'com.sangupta:jopensurf:1.0.0'
implementation fileTree(dir: 'lib', include: '*.jar')
// ---< Helper files, optional >---
implementation 'com.twelvemonkeys.imageio:imageio-jpeg:3.4.1'
testImplementation 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/applications/**'
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**'
}