forked from thilg/hcb-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.84 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
75
76
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
sourceCompatibility = 1.6
group = 'hcb'
version = '2.0-SNAPSHOT'
ext.hadoopVersion = "2.2.+"
jar {
manifest {
attributes 'Implementation-Title': 'Hadoop v2 Cookbook',
'Implementation-Version': version
}
}
eclipse {
jdt {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
}
repositories {
mavenCentral()
maven {url "http://repo.hortonworks.com/content/repositories/releases/" }
maven { url "https://repository.cloudera.com/artifactory/public/" }
maven { url "http://repository.apache.org/snapshots" }
maven { url "http://repo.maven.apache.org/maven2" }
}
sourceSets {
main {
java {
srcDir 'src'
}
}
test {
java {
srcDir 'test'
}
resources {
srcDir 'test-resources'
}
}
}
dependencies {
compile group: 'org.apache.hadoop', name: 'hadoop-common', version: '2.4.+'
compile group: 'org.apache.hadoop', name: 'hadoop-client', version: '2.4.+'
compile group: 'org.apache.hadoop', name: 'hadoop-yarn', version: '2.4.+'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-jobclient', version: '2.4.+',classifier: 'tests'
testCompile group: 'org.apache.hadoop', name: 'hadoop-yarn-server-tests', version: '2.4.+', classifier: 'tests'
testCompile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-hs', version: '2.4.+'
testCompile group: 'org.apache.hadoop', name: 'hadoop-mapreduce-client-shuffle', version: '2.4.+'
testCompile group: 'org.apache.hadoop', name: 'hadoop-common', version: '2.4.+', classifier: 'tests'
}
test {
}
uploadArchives {
repositories {
flatDir {
dirs 'repos'
}
}
}
}