-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
41 lines (35 loc) · 899 Bytes
/
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
defaultTasks 'sh', 'bat'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
sourceCompatibility=1.5
targetCompatibility=1.5
mainClassName='org.apache.tika.cli.TikaCLI'; // for 'gradle run' and MANIFEST.MF
dependencies {
//compile project(':util')
//compile 'org.apache.commons:commons-lang3:3.1'
//compile 'commons-cli:commons-cli:1.2'
compile('org.apache.tika:tika-app:1.5') {
transitive=false;
}
}
repositories {
mavenCentral()
}
jar {
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it).matching{
//exclude "META-INF/**" //especially for tika - otherwise, text extraction doesn't work
}
}
}
manifest {
attributes("Main-Class": mainClassName)
}
}
clean {
delete "${project.name}-${version}.sh"
delete "${project.name}-${version}.bat"
delete 'bin'
}