-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
47 lines (27 loc) · 1.05 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
/** Project */
name := "PostgreSQL Monitor"
version := "0.1.1"
organization := "net.tupari"
scalaVersion := "2.9.1"
//for web plugin
//seq(webSettings :_*)
/** Shell */
shellPrompt := { state => System.getProperty("user.name") + " " +System.getProperty("user.dir") + " sbt> " }
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")
/** Compilation */
javacOptions ++= Seq("-Xmx1812m", "-Xms512m", "-Xss4m")
scalacOptions += "-deprecation"
maxErrors := 20
pollInterval := 1000
testFrameworks += new TestFramework("org.specs2.runner.SpecsFramework")
testOptions := Seq(Tests.Filter(s =>
Seq("Spec", "Suite", "Unit", "Specs", "Test", "all").exists(s.endsWith(_)) &&
! s.endsWith("FeaturesSpec") ||
s.contains("UserGuide") ||
s.matches("org.specs2.guide.*")))
/** Console */
initialCommands in console := "import org.specs2._"