organization := "fr.iscpif"
name := "mgo"
scalaVersion := "2.10.1"
resolvers ++= Seq(
"ISC-PIF Release" at "http://maven.iscpif.fr/release",
"ISC-PIF Snapshots" at "http://maven.iscpif.fr/snapshots",
"Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/"
)
publishMavenStyle := true
publishArtifact in Test := false
//publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
publishTo <<= version { (v: String) =>
val maven = "http://maven.iscpif.fr/"
if (v.trim.endsWith("SNAPSHOT"))
Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))
//Some("snapshots" at maven + "snapshots")
else
Some("releases" at maven + "releases")
}
pomExtra := (
https://github.com/romainreuillon/mgo
Affero GPLv3
http://www.gnu.org/licenses/
repo
git@github.com:romainreuillon/mgo.git
scm:git:git@github.com:romainreuillon/mgo.git
romainreuillon
Romain Reuillon
)
credentials += Credentials(Path.userHome / ".sbt" / "iscpif.credentials")
scalariformSettings
releaseSettings