-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
35 lines (29 loc) · 858 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
apply plugin: 'java'
repositories {
mavenCentral()
}
ext {
hadoopVersion="2.7.0"
pigVersion="0.14.0"
pigunitVersion="0.14.0"
}
if (hadoopVersion.startsWith("2.") || hadoopVersion.startsWith("0.23.")) {
dependencies {
compile "org.apache.pig:pig:$pigVersion:h2"
compile "org.apache.hadoop:hadoop-common:$hadoopVersion"
compile "org.apache.hadoop:hadoop-hdfs:$hadoopVersion"
compile "org.apache.hadoop:hadoop-mapreduce-client-jobclient:$hadoopVersion"
}
} else {
dependencies {
compile "org.apache.pig:pig:$pigVersion"
compile "org.apache.hadoop:hadoop-core:$hadoopVersion"
}
}
dependencies {
testCompile group: "org.apache.pig", name: "pigunit", version: "$pigunitVersion"
testCompile group: 'commons-io', name: 'commons-io', version: '1.4'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}