-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (51 loc) · 1.25 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
buildscript {
repositories {
jcenter()
}
dependencies {
}
}
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.2'
}
group 'com.helloworld.serde'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile("org.apache.hive:hive-common:3.0.0") {
transitive = false
}
compile("org.apache.hive:hive-exec:3.0.0") {
transitive = false
}
compile("org.apache.hadoop:hadoop-common:3.1.0@jar")
compile("org.apache.hadoop:hadoop-mapreduce-client-core:3.1.0@jar")
compile("org.slf4j:slf4j-api:1.7.15")
testCompile group: 'junit', name: 'junit', version: '4.12'
}
shadowJar {
zip64 true
mergeServiceFiles()
classifier = ''
relocate 'org.apache.http', 'shaded.org.apache.http'
relocate 'org.apache.solr', 'shaded.org.apache.solr'
relocate 'jline', 'shaded.jline'
// Remove unwanted files in root jar (repackaging)
exclude 'JDOMAbout*.class'
exclude '.gitkeep'
exclude '*.txt'
exclude '*.dtd'
exclude '*.gif'
exclude '*.properties'
exclude '*.xml'
exclude '*.ico'
exclude '*.lst'
exclude '*.css'
exclude 'NOTICE'
exclude 'JHIGHLIGHT_VERSION'
exclude 'LICENSE'
}