-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
38 lines (29 loc) · 942 Bytes
/
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
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
mainClassName = 'idv.popcornylu.spark.WordCount'
repositories {
jcenter()
}
jar {
manifest {
attributes 'Main-Class': mainClassName
}
}
configurations { providedCompile }
sourceSets.main.compileClasspath += configurations.providedCompile
sourceSets.test.compileClasspath += configurations.providedCompile
sourceSets.test.runtimeClasspath += configurations.providedCompile
dependencies {
compile 'org.slf4j:slf4j-api:1.7.18'
compile 'org.apache.commons:commons-lang3:3.5'
testCompile 'junit:junit:4.12'
// For scala
def sparkVersion = '2.1.0'
providedCompile "org.apache.spark:spark-sql_2.11:$sparkVersion"
providedCompile 'org.scala-lang:scala-library:2.11.8'
providedCompile 'org.scala-lang:scala-xml:2.11.0-M4'
}