-
Notifications
You must be signed in to change notification settings - Fork 531
/
build.sbt
29 lines (21 loc) · 973 Bytes
/
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
name := "Waterdrop"
version := "0.1.0"
organization := "org.interestinglab.waterdrop"
scalaVersion := "2.10.6"
val sparkVersion = "1.6.0"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
"org.apache.spark" %% "spark-streaming" % sparkVersion % "provided",
"org.apache.spark" %% "spark-streaming-kafka" % sparkVersion
exclude("org.spark-project.spark", "unused"),
"com.typesafe" % "config" % "1.3.1",
"org.json4s" %% "json4s-jackson" % "3.4.2"
)
resolvers += Resolver.mavenLocal
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
// automatically check coding style before compile
scalastyleFailOnError := true
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
compileScalastyle := scalastyle.in(Compile).toTask("").value
(compile in Compile) := ((compile in Compile) dependsOn compileScalastyle).value