forked from h2oai/h2o-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
54 lines (48 loc) · 1.51 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
rootProject.name = 'h2o-3'
include 'h2o-core'
include 'h2o-algos'
include 'h2o-web'
include 'h2o-app'
include 'h2o-scala'
include 'h2o-r'
include 'h2o-py'
include 'h2o-assembly'
include 'h2o-persist-hdfs'
include 'h2o-persist-s3'
include 'h2o-docs'
include 'h2o-hadoop:h2o-mapreduce-generic'
include 'h2o-hadoop:h2o-yarn-generic'
include 'h2o-genmodel'
include 'h2o-bindings'
include 'h2o-test-integ'
include 'h2o-test-accuracy'
include 'h2o-avro-parser'
// Make structure flat and avoid annoying dummy modules
rootProject.children.each { project ->
if (project.name.equals("h2o-avro-parser")) {
String projectDirName = "h2o-parsers/${project.name}"
project.projectDir = new File(settingsDir, projectDirName)
}
}
//
// Include Hadoop builds only if requested
//
if (System.getProperty("user.name").equals("jenkins")
|| System.getenv("BUILD_HADOOP") != null
|| System.getenv("H2O_TARGET") != null) {
// Default hadoop build targets
def allTargets = [
"cdh5.2", "cdh5.3", "cdh5.4.2", "cdh5.5.3", "cdh5.6.0", "cdh5.7.0",
"hdp2.1", "hdp2.2", "hdp2.3", "hdp2.4",
"mapr3.1.1", "mapr4.0.1", "mapr5.0", "mapr5.1"
]
// Compute targets
def targets = System.getenv("H2O_TARGET") != null ? System.getenv("H2O_TARGET").split(",").collect { it.trim() } : allTargets
// Include selected/all Hadoop targets
if (System.getenv("BUILD_HADOOP") != "false") {
targets.each { name ->
include "h2o-hadoop:h2o-${name}"
include "h2o-hadoop:h2o-${name}-assembly"
}
}
}