forked from spring-attic/spring-hadoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
64 lines (61 loc) · 1.85 KB
/
settings.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
rootProject.name = 'spring-data-hadoop'
ext.hadoopDistro = hasProperty("distro") ? getProperty("distro") : "default"
switch (ext.hadoopDistro) {
case "cdh3":
ext.mr2 = false
break
case "cdh4yarn":
ext.mr2 = false
break
case "cdh4":
case "cdh4mr1":
ext.mr2 = false
break
case "cdh5":
case "cdh5yarn":
ext.mr2 = true
break
case "cdh5mr1":
ext.mr2 = false
break
case "phd1":
ext.mr2 = false
break
case "phd20":
ext.mr2 = true
break
case "hdp13":
ext.mr2 = false
break
case "hdp20":
ext.mr2 = true
break
case "hdp21":
ext.mr2 = true
break
case "hadoop24":
ext.mr2 = true
break
case "hadoop12":
ext.mr2 = false
break
default:
ext.mr2 = true
}
gradle.ext.mr2 = mr2
include 'spring-hadoop-core'
rootProject.children.find{ it.name == 'spring-hadoop-core' }.name = 'spring-data-hadoop-core'
include 'spring-hadoop-batch'
rootProject.children.find{ it.name == 'spring-hadoop-batch' }.name = 'spring-data-hadoop-batch'
include 'spring-hadoop-store'
rootProject.children.find{ it.name == 'spring-hadoop-store' }.name = 'spring-data-hadoop-store'
include 'spring-hadoop-config'
rootProject.children.find{ it.name == 'spring-hadoop-config' }.name = 'spring-data-hadoop'
include 'spring-hadoop-test'
rootProject.children.find{ it.name == 'spring-hadoop-test' }.name = 'spring-data-hadoop-test'
include 'spring-hadoop-build-tests'
rootProject.children.find{ it.name == 'spring-hadoop-build-tests' }.name = 'spring-data-hadoop-build-tests'
if (mr2) {
print "Based on selected distro (${hadoopDistro}) we are including spring-yarn\n"
include 'spring-yarn:spring-yarn-core','spring-yarn:spring-yarn-integration','spring-yarn:spring-yarn-batch','spring-yarn:spring-yarn-test','spring-yarn:spring-yarn-build-tests','spring-yarn:spring-yarn-boot','spring-yarn:spring-yarn-boot-test','spring-yarn:spring-yarn-boot-build-tests'
}