forked from inanna-malick/data-pipelines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
73 lines (68 loc) · 2.74 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
// use sbt-dev-settings to configure
import com.nitro.build._
import PublishHelpers._
// GAV coordinates
//
lazy val pName = "needle"
lazy val semver = SemanticVersion(0, 0, 0, isSnapshot = true)
organization := "com.gonitro"
name := pName
version := semver.toString
// scala & java
//
// ::: NOTE :::
// we want to update to JVM 8 ASAP !
// since we know that we want to be able to use this stuff w/ Spark,
// we unfortunately have to limit ourselves to jvm 7.
// once this gets resolved, we'll update:
// [JIRA Issue] https://issues.apache.org/jira/browse/SPARK-6152
lazy val devConfig = {
import CompileScalaJava._
Config.spark
}
scalaVersion := "2.11.7"
CompileScalaJava.librarySettings(devConfig)
javaOptions := JvmRuntime.settings(devConfig.jvmVer)
// dependencies and their resolvers
//
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" cross CrossVersion.full)
libraryDependencies := Seq(
// includes spark-core
"io.malcolmgreaves" %% "sparkmod" % "0.1.1-SNAPSHOT",
"com.github.mpilquist" %% "simulacrum" % "0.4.0",
"org.scalanlp" %% "breeze" % "0.11.2",
// native libraries greatly improve performance, but increase jar sizes.
"org.scalanlp" %% "breeze-natives" % "0.11.2",
"org.scalanlp" %% "breeze-viz" % "0.11.2",
"com.quantifind" %% "wisp" % "0.0.4",
"org.apache.commons" % "commons-lang3" % "3.4",
"org.scala-lang.modules" %% "scala-pickling" % "0.10.1",
"com.jsuereth" %% "scala-arm" % "1.4",
"com.github.scala-incubator.io" %% "scala-io-file" % "0.4.3-1",
"com.chuusai" %% "shapeless" % "2.2.5",
// Testing
"org.specs2" %% "specs2" % "2.4.15" % Test,
// "org.scalatest" %% "scalatest" % "2.2.1" % Test withSources() withJavadoc(),
"org.scalacheck" %% "scalacheck" % "1.12.1" % Test withSources() withJavadoc(),
"org.scalatest" %% "scalatest" % "2.2.4" % Test
)
resolvers := Seq(
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/"
)
// publishing settings
//
Publish.settings(
repo = Repository.github("Nitro", pName),
developers =
Seq(
Developer("mkolod", "Marek Kolodziej", "[email protected]", new URL("https", "github.com", "/mkolod")),
Developer("mgreaves", "Malcolm Greaves", "[email protected]", new URL("https", "github.com", "/malcolmgreaves"))
),
art = ArtifactInfo.sonatype(semver),
lic = License.apache20
)
// test & misc. configuration
//
fork in Test := false
parallelExecution in Test := true