-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (62 loc) · 2.39 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
74
plugins {
// ide
id 'java'
id 'idea'
id 'eclipse'
// publishing
id 'com.jfrog.bintray' version '1.8.0' apply false
// code style
id 'com.diffplug.gradle.spotless' version '3.8.0'
// license
id 'com.github.hierynomus.license' version '0.14.0'
id 'org.unbroken-dome.test-sets' version '1.4.2'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
version = '3.0.0'
description = 'Hadoop adaptors for Xenon.'
ext {
xenonVersion = '3.0.0'
}
apply from: 'gradle/common.gradle'
apply from: 'gradle/adaptor.gradle'
dependencies {
// Adaptor dependencies.
compile group: 'nl.esciencecenter.xenon', name: 'xenon', version: xenonVersion
compile group: 'org.apache.hadoop', name: 'hadoop-common', version: '2.8.1'
compile group: 'org.apache.hadoop', name: 'hadoop-hdfs', version: '2.8.1'
// Runtime dependencies
shadow group: 'ch.qos.logback', name: 'logback-core', version: '1.0.11'
shadow group: 'ch.qos.logback', name: 'logback-classic', version: '1.0.11'
// liveTestCompile project(':test-utils')
// liveTestCompile group: 'junit', name: 'junit', version: '4.12'
}
ext.shadowPrefix = project.name.replaceAll('-', '_') + '.shadow.'
shadowJar {
mergeServiceFiles()
classifier = null
// relocate 'org.jclouds', shadowPrefix + 'org.jclouds'
// relocate 'com.google', shadowPrefix + 'com.google'
// relocate 'org.objectweb.asm', shadowPrefix + 'org.objectweb.asm'
// relocate 'com.jamesmurty', shadowPrefix + 'com.jamesmurty'
// relocate 'net.iharder', shadowPrefix + 'net.iharder'
// relocate 'org.aopalliance', shadowPrefix + 'org.aopalliance'
// relocate 'net.sf.cglib', shadowPrefix + 'net.sf.cglib'
relocate('javax', shadowPrefix + 'javax') {
exclude 'javax.security.auth.login.LoginException'
exclude 'javax.security.auth.login.Configuration'
exclude 'javax.security.auth.callback.CallbackHandler'
}
relocate 'okio', shadowPrefix + 'okio'
relocate 'com', shadowPrefix + 'com'
relocate 'net', shadowPrefix + 'net'
relocate 'org', shadowPrefix + 'org'
relocate 'jline', shadowPrefix + 'org'
relocate 'io', shadowPrefix + 'org'
// relocate 'ch', shadowPrefix + 'org'
relocate 'contribs', shadowPrefix + 'org'
dependencies {
exclude(dependency('ch.qos.logback::.*'))
exclude(dependency('nl.esciencecenter.xenon:xenon:.*'))
exclude(dependency('org.slf4j::.*'))
}
}