-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
53 lines (42 loc) · 1.13 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
plugins {
id "java"
}
group "org.apache.tika"
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
jar {
baseName "tika-fork-main"
}
configurations.all {
exclude module: 'slf4j-log4j12'
}
dependencies {
compile "com.fasterxml.jackson.core:jackson-databind:${jacksonDatabindVersion}"
compile "org.apache.tika:tika-core:${tikaVersion}"
compile "org.apache.tika:tika-parsers:${tikaVersion}"
compile "args4j:args4j:${args4jVersion}"
compile 'org.apache.logging.log4j:log4j-slf4j-impl:2.9.0'
testCompile group: "junit", name: "junit", version: "${junitVersion}"
}
task copyDependencies(type: Copy) {
from configurations.runtime
into new File(buildDir, "dist")
}
task copyJarToDist(type: Copy) {
from "$buildDir/libs/tika-fork-main-${version}.jar"
into new File(buildDir, "dist")
}
task tarz(type: Tar) {
archiveName = "tika-fork-main-${version}.tgz"
into ('/') {
from 'build/dist'
include '*'
}
destinationDir file('build/tgz')
extension 'tgz'
compression = Compression.GZIP
}
task dist(dependsOn: [build, copyDependencies, copyJarToDist, tarz]) {
}