forked from etorreborre/iterator-essence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (38 loc) · 1.58 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
/** Project */
name := "iterator-essence"
version := "1.5"
organization := "org.specs2"
scalaVersion := "2.9.0-1"
/** Shell */
shellPrompt := { state => System.getProperty("user.name") + "> " }
shellPrompt in ThisBuild := { state => Project.extract(state).currentRef.project + "> " }
/** Dependencies */
resolvers ++= Seq("snapshots-repo" at "http://scala-tools.org/repo-snapshots",
"Local Maven Repository" at "file://$M2_REPO")
libraryDependencies ++= Seq(
"org.scala-tools.testing" % "scalacheck_2.9.0" % "1.9",
"org.scala-tools.testing" % "test-interface" % "0.5",
"org.specs2" %% "specs2-scalaz-core" % "6.0.RC2",
"org.specs2" %% "specs2" % "1.5-SNAPSHOT",
"org.hamcrest" % "hamcrest-all" % "1.1",
"org.mockito" % "mockito-all" % "1.8.5",
"junit" % "junit" % "4.7",
"org.pegdown" % "pegdown" % "1.0.1"
)
/** Compilation */
javacOptions ++= Seq("-Xmx1812m", "-Xms512m", "-Xss4m")
scalacOptions += "-deprecation"
maxErrors := 20
pollInterval := 1000
testFrameworks += new TestFramework("org.specs2.runner.SpecsFramework")
testOptions := Seq(Tests.Filter(s => s.matches("org.specs2.blog.*") || s.matches(".*Spec")))
/** Console */
initialCommands in console := "import org.specs2._"
// Packaging
/** Publishing */
credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")
publishTo <<= (version) { version: String =>
val nexus = "http://nexus-direct.scala-tools.org/content/repositories/"
if (version.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus+"snapshots/")
else Some("releases" at nexus+"releases/")
}