forked from breinero-zz/MongoDB_Spark_Course
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
64 lines (47 loc) · 1.35 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
group 'com.bryanreinero'
version '1.0-SNAPSHOT'
ext.sparkVersion = '1.6.1'
ext.scalaVersion = '2.10'
allprojects {
apply plugin: 'java'
//apply plugin: 'scala'
apply plugin: 'application'
mainClassName = "spacewalk.SpaceWalk"
repositories {
mavenCentral()
mavenLocal()
maven { url "https://repository.cloudera.com/artifactory/cloudera-repos/" }
}
version = '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
repositories {
mavenCentral()
mavenLocal()
maven { url "https://repository.cloudera.com/artifactory/cloudera-repos/" }
}
dependencies {
//testCompile group: 'junit', name: 'junit', version: '4.11'
compile "org.mongodb:mongo-java-driver:3.1.1"
compile ( "org.mongodb.spark:mongo-spark-connector_2.10:0.1" )
compile "org.apache.spark:spark-core_${scalaVersion}:${sparkVersion}"
compile "org.apache.spark:spark-sql_${scalaVersion}:${sparkVersion}"
}
jar {
baseName = "SparkCourse"
manifest {
attributes 'Implementation-Title': 'SparkCourse',
'Implementation-Version': version
}
zip64 true
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
} {
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}