forked from malcolmgreaves/data-tc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
67 lines (54 loc) · 1.95 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
// use sbt-dev-settings to configure
import com.nitro.build._
import PublishHelpers._
// GAV
lazy val pName = "abstract_data"
lazy val semver = SemanticVersion(0, 0, 3, isSnapshot = false)
organization := "io.malcolmgreaves"
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
resolvers := Seq(
"Sonatype Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/",
"Sonatype Releases" at "https://oss.sonatype.org/content/repositories/releases/"
)
// for simulacrum
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0-M5" cross CrossVersion.full)
libraryDependencies ++= Seq(
// algebra, typeclasses, functional
"com.github.mpilquist" %% "simulacrum" % "0.4.0",
"org.spire-math" %% "algebra" % "0.3.1",
// Testing
"org.scalatest" %% "scalatest" % "2.2.4" % Test
)
// doc hacks
sources in (Compile, doc) ~= (_ filter (_.getName endsWith "ToMap.scala"))
sources in (Compile, doc) ~= (_ filter (_.getName endsWith "Sum.scala"))
sources in (Compile, doc) ~= (_ filter (_.getName endsWith "DataOps.scala"))
// publishing settings
Publish.settings(
repo = Repository.github("malcolmgreaves", pName),
developers =
Seq(
Developer("mgreaves", "Malcolm Greaves", "[email protected]", new URL("https", "github.com", "/malcolmgreaves"))
),
art = ArtifactInfo.sonatype(semver),
lic = License.apache20
)
// unit test configuration
fork in Test := false
parallelExecution in Test := true