-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (52 loc) · 1.29 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
allprojects {
group 'bigdata-spark'
version '1.0.0'
}
ext {
scalaVersion = '2.11.12'
sparkVersion = '2.3.0'
}
subprojects {
apply plugin: 'java'
apply plugin: 'scala'
repositories {
flatDir {
dirs 'lib'
}
mavenLocal()
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
scala {
srcDirs = ['src/main/scala']
}
}
test {
java {
srcDirs = ['src/test/java']
}
scala {
srcDirs = ['src/test/scala']
}
}
}
dependencies {
compile "org.scala-lang:scala-library:$scalaVersion"
compile "org.apache.spark:spark-core_2.11:$sparkVersion"
compile "org.apache.spark:spark-streaming_2.11:$sparkVersion"
compile "org.apache.spark:spark-mllib_2.11:$sparkVersion"
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'org.assertj:assertj-core:3.8.0'
}
}
configure(subprojects.findAll {it.name != 'udemy-spark-commons'}) {
dependencies {
compile project(":udemy-spark-commons")
}
}