Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
101 lines (75 sloc) 2.83 KB
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>git@github.com:janm399/scalad.git</url>
<connection>scm:git:git@github.com: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._"