forked from h2oai/h2o-3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
64 lines (57 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 = 'h2o-3'
include 'h2o-core'
include 'h2o-algos'
include 'h2o-web'
include 'h2o-app'
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'
include 'h2o-orc-parser'
include 'h2o-parquet-parser'
// Reconfigure scala projects to support cross compilation
// The following code will create two projects for each included item:
// For example: h2o-scala_2.10, h2o-scala_2.11
apply plugin: 'scala-cross-build'
scalaCrossCompile {
targetVersions "2.10.4", "2.11.7"
include 'h2o-scala'
}
// Make structure flat and avoid annoying dummy modules
rootProject.children.each { project ->
if (project.name.startsWith("h2o-") && project.name.endsWith("-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", "cdh5.5", "cdh5.6", "cdh5.7", "cdh5.8",
"hdp2.1", "hdp2.2", "hdp2.3", "hdp2.4",
"mapr3.1", "mapr4.0", "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"
}
}
}