-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
31 lines (25 loc) · 1.17 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
resolvers += "Job Server Bintray" at "https://dl.bintray.com/spark-jobserver/maven"
lazy val mainSettings = Seq(
name := "jobserver-cassandra",
organization := "spark.jobserver",
crossScalaVersions := Seq("2.10.4","2.11.6"),
scalacOptions ++= Seq("-Xlint", "-deprecation", "-Xfatal-warnings", "-feature")
)
libraryDependencies ++= Seq(
"com.datastax.spark" %% "spark-cassandra-connector" % "1.4.0" % "provided",
"org.apache.spark" %% "spark-core" % "1.4.1" % "provided",
"spark.jobserver" %% "job-server" % "0.6.0" % "provided"
)
lazy val compileScalastyle = taskKey[Unit]("compileScalastyle")
lazy val styleSettings = Seq(
scalastyleFailOnError := true,
compileScalastyle := org.scalastyle.sbt.ScalastylePlugin.scalastyle.in(Compile).toTask("").value,
// Is running this on compile too much?
// (compile in Compile) <<= (compile in Compile) dependsOn compileScalastyle
(Keys.`package` in Compile) <<= (Keys.`package` in Compile) dependsOn compileScalastyle
)
lazy val publishSettings = Seq(
licenses += ("Apache-2.0", url("http://choosealicense.com/licenses/apache/")),
bintrayOrganization := Some("spark-jobserver")
)
mainSettings ++ styleSettings ++ publishSettings