-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
100 lines (75 loc) · 2.83 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import sbtrelease._
/** Project */
name := "Scalad"
organization := "org.eigengo"
scalaVersion := "2.10.1"
/** 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/"
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := (
<url>http://www.eigengo.org/scalad.html</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:janm399/scalad.git</url>
<connection>scm:git:[email protected]:janm399/scalad.git</connection>
</scm>
<developers>
<developer>
<id>janmachacek</id>
<name>Jan Machacek</name>
<url>http://www.eigengo.org</url>
</developer>
<developer>
<id>anirvanchakraborty</id>
<name>Anirvan Chakraborty</name>
<url>http://www.eigengo.org</url>
</developer>
</developers>
)
credentials += Credentials(Path.userHome / ".sonatype")
libraryDependencies <<= scalaVersion { scala_version =>
Seq(
"com.github.fommil" % "java-logging" % "1.0",
"com.typesafe.akka" %% "akka-actor" % "2.1.2",
"com.typesafe.akka" %% "akka-contrib" % "2.1.2" intransitive(), // JUL only
"org.mongodb" % "mongo-java-driver" % "2.10.1",
"com.typesafe" % "config" % "1.0.0",
"io.spray" %% "spray-json" % "1.2.3",
"org.specs2" %% "specs2" % "1.13" % "test",
"org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
)
}
/** 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.eigengo.scalad._"