forked from spark-notebook/spark-notebook
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.sbt
170 lines (135 loc) · 5.87 KB
/
build.sbt
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
import Dependencies._
import Shared._
//play.Project.playScalaSettings
organization := "noootsab"
name := "spark-notebook"
version in ThisBuild <<= (sparkVersion, hadoopVersion) { (sv, hv) => s"0.1.4-spark-$sv-hadoop-$hv" }
maintainer := "Andy Petrella" //Docker
dockerExposedPorts in Docker := Seq(9000, 9443) //Docker
dockerRepository := Some("andypetrella") //Docker
packageName in Docker := "spark-notebook"
scalaVersion := "2.10.4"
ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }
parallelExecution in Test in ThisBuild := false
// these java options are for the forked test JVMs
javaOptions in ThisBuild ++= Seq("-Xmx512M", "-XX:MaxPermSize=128M")
resolvers in ThisBuild ++= Seq(
Resolver.typesafeRepo("releases"),
Resolver.sonatypeRepo("releases"),
Resolver.typesafeIvyRepo("releases"),
Resolver.typesafeIvyRepo("snapshots"),
"cloudera" at "https://repository.cloudera.com/artifactory/cloudera-repos"
)
compileOrder := CompileOrder.Mixed
publishMavenStyle := false
javacOptions ++= Seq("-Xlint:deprecation", "-g")
scalacOptions += "-deprecation"
scalacOptions ++= Seq("-Xmax-classfile-name", "100")
commands ++= Seq( distAll, dockerPublishLocalAll, dockerPublishAll )
dependencyOverrides += "log4j" % "log4j" % "1.2.16"
enablePlugins(DebianPlugin)
sharedSettings
libraryDependencies ++= Seq(
playDep,
akka,
akkaRemote,
akkaSlf4j,
jdbc,
anorm,
cache,
commonsIO,
// ↓ to fix java.lang.IllegalStateException: impossible to get artifacts when data has
// not been loaded. IvyNode = org.apache.commons#commons-exec;1.1
// encountered when using hadoop "2.0.0-cdh4.2.0"
commonsExec,
ningAsyncHttpClient, // for aether to work...
"org.scala-lang" % "scala-library" % "2.10.4",
"org.scala-lang" % "scala-reflect" % "2.10.4",
"org.scala-lang" % "scala-compiler" % "2.10.4"
)
lazy val sparkNotebook = project.in(file(".")).enablePlugins(play.PlayScala).enablePlugins(SbtWeb)
.aggregate(subprocess, observable, common, kernel)
.dependsOn(subprocess, observable, common, kernel)
.settings(
sharedSettings:_*
).settings(
includeFilter in (Assets, LessKeys.less) := "*.less"
)
lazy val subprocess = project.in(file("modules/subprocess"))
.settings(
libraryDependencies ++= {
Seq(
playDep,
akka,
akkaRemote,
akkaSlf4j,
commonsIO,
commonsExec,
log4j
)
}
)
.settings(
sharedSettings:_*
)
.settings(
sparkSettings:_*
)
lazy val observable = Project(id = "observable", base = file("modules/observable"))
.dependsOn(subprocess)
.settings(
libraryDependencies ++= Seq(
akkaRemote,
akkaSlf4j,
slf4jLog4j,
rxScala
)
)
.settings(
sharedSettings:_*
)
lazy val common = Project(id = "common", base = file("modules/common"))
.dependsOn(observable)
.settings(
libraryDependencies ++= Seq(
akka,
log4j,
scalaZ
),
libraryDependencies ++= Seq(
aetherApi,
jcabiAether,
mavenCore
),
// plotting functionality
libraryDependencies ++= Seq(
bokeh,
wisp
) ++ customJacksonScala
)
.settings(
sharedSettings:_*
)
.settings(
sparkSettings:_*
)
lazy val kernel = Project(id = "kernel", base = file("modules/kernel"))
.dependsOn(common, subprocess, observable)
.settings(
libraryDependencies ++= Seq(
akkaRemote,
akkaSlf4j,
slf4jLog4j,
commonsIO
),
libraryDependencies ++= Seq(
"org.scala-lang" % "jline" % scalaVersion.value,
"org.scala-lang" % "scala-compiler" % scalaVersion.value
)
)
.settings(
sharedSettings:_*
)
.settings(
sparkSettings:_*
)