forked from eigengo/scalad
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
73 lines (48 loc) · 2.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
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
import sbtrelease._
/** Project */
name := "Scalad"
version := "1.0"
organization := "org.cakesolutions"
scalaVersion := "2.10.0"
/** Shell */
shellPrompt := { state => System.getProperty("user.name") + "> " }
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
/** Dependencies */
resolvers += "spray repo" at "http://repo.spray.io"
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
resolvers += "Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/"
//resolvers += "Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
publishMavenStyle := true
publishTo <<= version { (v: String) =>
if (v.trim.endsWith("SNAPSHOT"))
Some("Cakesolutions Artifactory Snapshots" at "http://build.cakesolutions.net/artifactory/libs-snapshot-local")
else
Some("Cakesolutions Artifactory Releases" at "http://build.cakesolutions.net/artifactory/libs-release-local")
}
credentials += Credentials(Path.userHome / ".artifactory" / ".credentials")
libraryDependencies <<= scalaVersion { scala_version =>
val scalazVersion = "7.0.0-M6"
Seq(
// "org.scalaz" % "scalaz-effect" % scalazVersion cross CrossVersion.binary,
"org.mongodb" % "mongo-java-driver" % "2.10.0",
"io.spray" % "spray-json" % "1.2.3" cross CrossVersion.binary,
"org.specs2" % "specs2" % "1.13" % "test" cross CrossVersion.binary,
"org.scalacheck" % "scalacheck" % "1.10.0" % "test" cross CrossVersion.binary
)
}
/** Compilation */
javacOptions ++= Seq("-Xmx1812m", "-Xms512m", "-Xss6m")
javaOptions += "-Xmx2G"
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature")
maxErrors := 20
pollInterval := 1000
logBuffered := false
cancelable := true
testOptions := Seq(Tests.Filter(s =>
Seq("Spec", "Suite", "Test", "Unit", "all").exists(s.endsWith(_)) &&
!s.endsWith("FeaturesSpec") ||
s.contains("UserGuide") ||
s.contains("index") ||
s.matches("org.specs2.guide.*")))
/** Console */
initialCommands in console := "import org.cakesolutions.scalad._"