forked from radanalyticsio/silex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
73 lines (52 loc) · 2.01 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
name := "silex"
organization := "com.redhat.et"
version := "0.1.2"
val SPARK_VERSION = "2.1.0"
scalaVersion := "2.10.6"
crossScalaVersions := Seq("2.10.6", "2.11.11")
def commonSettings = Seq(
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % SPARK_VERSION % "provided",
"org.apache.spark" %% "spark-sql" % SPARK_VERSION % "provided",
"org.apache.spark" %% "spark-mllib" % SPARK_VERSION % "provided",
"joda-time" % "joda-time" % "2.7",
"org.joda" % "joda-convert" % "1.7",
"org.apache.commons" % "commons-math3" % "3.6",
"org.scalatest" %% "scalatest" % "2.2.4" % Test,
"org.slf4j" % "slf4j-nop" % "1.7.6" % Test,
"org.json4s" %% "json4s-jackson" % "3.2.10" % "provided",
"org.scalanlp" %% "breeze" % "0.12",
"org.scalanlp" %% "breeze-natives" % "0.12"
)
)
seq(commonSettings:_*)
seq(bintraySettings:_*)
libraryDependencies += "org.apache.spark" %% "spark-mllib" % SPARK_VERSION
seq(bintrayPublishSettings:_*)
licenses += ("Apache-2.0", url("http://opensource.org/licenses/Apache-2.0"))
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
scalacOptions in (Compile, doc) ++= Seq("-doc-root-content", baseDirectory.value+"/root-doc.txt")
(dependencyClasspath in Test) <<= (dependencyClasspath in Test).map(
_.filterNot(_.data.name.contains("slf4j-log4j12"))
)
site.settings
site.includeScaladoc()
site.jekyllSupport()
ghpages.settings
git.remoteRepo := "git@github.com:radanalyticsio/silex.git"
lazy val silex = project in file(".")
lazy val spark = project.dependsOn(silex)
.settings(commonSettings:_*)
.settings(
name := "spark",
publishArtifact := false,
publish := {},
initialCommands in console := """
|import org.apache.spark.SparkConf
|import org.apache.spark.SparkContext
|import org.apache.spark.SparkContext._
|import org.apache.spark.rdd.RDD
|val app = new com.redhat.et.silex.app.ConsoleApp()
|val spark = app.context
""".stripMargin,
cleanupCommands in console := "spark.stop")