Revision edbd7a0a5afcf75dcd897de2effc18d54eaffcf8 authored by Romain Reuillon on 22 June 2013, 19:00:04 UTC, committed by Romain Reuillon on 22 June 2013, 19:00:04 UTC
1 parent 39e36ff
build.sbt
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/"
)
libraryDependencies += "com.github.scala-incubator.io" % "scala-io-core_2.10" % "0.4.2"
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.2"
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 := (
<url>https://github.com/romainreuillon/mgo</url>
<licenses>
<license>
<name>Affero GPLv3</name>
<url>http://www.gnu.org/licenses/</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:romainreuillon/mgo.git</url>
<connection>scm:git:git@github.com:romainreuillon/mgo.git</connection>
</scm>
<developers>
<developer>
<id>romainreuillon</id>
<name>Romain Reuillon</name>
</developer>
</developers>
)
credentials += Credentials(Path.userHome / ".sbt" / "iscpif.credentials")
scalariformSettings
releaseSettings
Computing file changes ...