-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
51 lines (43 loc) · 1.04 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
apply plugin: 'java'
apply plugin: 'distribution'
version = 1.1
ext {
mainClassName = 'nl.surfsara.newsreader.Main'
componentsDir = 'newsreader-hadoop-components'
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
maven { url 'http://conjars.org/repo' }
}
dependencies {
compile group: 'cascading', name: 'cascading-core', version: '3.0.1'
compile group: 'cascading', name: 'cascading-hadoop', version: '3.0.1'
compile group: 'org.json', name: 'json', version: '20140107'
compileOnly group: 'org.apache.hadoop', name: 'hadoop-client', version: '2.6.0'
}
task zipComponents(type: Zip) {
zip64 = true
archiveName = componentsDir + '.' + extension
destinationDir = project.rootDir
from componentsDir
}
jar {
manifest {
attributes('Main-Class': mainClassName)
}
into('lib') {
from configurations.runtime
}
}
distributions {
main {
contents {
from 'resources'
from 'scripts'
from jar
from zipComponents
}
}
}