forked from h2oai/sparkling-water
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (71 loc) · 2.07 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
77
78
79
80
81
82
83
84
//
// Sparkling Water build file.
// This is a multi-module build file.
//
// For multiproject setup we have to apply release plugin here (we share same release number cross all modules)
apply from: 'gradle/release.gradle'
// The build script settings to fetch plugins and put them on
// classpath
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url "http://dl.bintray.com/releashaus/release" }
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.0'
classpath 'org.github.mansur.scalastyle:gradle-scalastyle-plugin_2.10:0.4.1'
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.7.1'
classpath 'com.github.townsfolk:gradle-release:1.2'
}
}
//
// Common configuration
//
ext {
// Published projects
publishedProjects = [
project(':sparkling-water-core'),
project(':sparkling-water-assembly')
]
}
//
// For all projects (this and all subprojects) specify common properties and tasks
//
configure(allprojects) { project ->
apply plugin: 'idea'
apply plugin: 'eclipse'
apply from: "$rootDir/gradle/artifacts.gradle"
// Version of main components
ext {
scalaVersion = '2.10.4'
scalaBinaryVersion = '2.10'
h2oVersion = '0.1.13'
h2oFlowVersion = '0.2.7'
sparkVersion = '1.1.0'
}
}
//
// Common configuration for all subprojects
//
configure(subprojects) { project ->
// All project inherits the same versioning number
version = rootProject.version
repositories {
mavenCentral()
maven {
url "https://repository.cloudera.com/artifactory/cloudera-repos/"
}
// Should be enabled only in development mode
//mavenLocal()
}
// All subprojects are scala project so apply the plugin directly
apply from: "$rootDir/gradle/scala.gradle"
// Publish artifacts
if (project in publishedProjects) {
apply from: "$rootDir/gradle/publish.gradle"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2.1'
}