Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 2f1e49346b
Fetching contributors…

Cannot retrieve contributors at this time

66 lines (51 sloc) 1.957 kB
name := "common"
version := "1.0-SNAPSHOT"
organization := "com.gu"
scalaVersion := "2.9.1"
crossScalaVersions ++= Seq("2.8.1", "2.9.0-1")
seq(scalariformSettings: _*)
resolvers ++= Seq(
"Scala Tools" at "http://scala-tools.org/repo-releases",
"Guardian GitHub Repository" at "http://guardian.github.com/maven/repo-releases"
)
libraryDependencies ++= Seq(
"com.gu" % "codecs" % "0.1",
"com.gu" % "configuration" % "2.12",
"com.gu" % "management-core" % "3.0.6",
"com.gu" % "simplecache-core" % "2.1",
"com.gu.openplatform" %% "content-api-client" % "1.12",
"commons-codec" % "commons-codec" % "1.4",
"commons-io" % "commons-io" % "1.4",
"org.apache.commons" % "commons-vfs2" % "2.0",
"javax.mail" % "mail" % "1.4",
"joda-time" % "joda-time" % "1.6.2",
"org.quartz-scheduler" % "quartz" % "2.0.2",
"org.slf4j" % "slf4j-api" % "1.6.1"
)
libraryDependencies ++= Seq(
"javax.servlet" % "servlet-api" % "2.5" % "provided"
)
libraryDependencies ++= Seq(
"org.mockito" % "mockito-all" % "1.8.1" % "test"
)
libraryDependencies <<= (scalaVersion, libraryDependencies) { (sv, deps) =>
val scalaTestVersion = sv match {
case "2.8.1" => "1.5.1"
case "2.9.0-1" => "1.6.1"
case "2.9.1" => "1.6.1"
case _ => error("Unsupported Scala version " + sv)
}
deps :+ ("org.scalatest" %% "scalatest" % scalaTestVersion % "test")
}
publishTo <<= (version) { version: String =>
val publishType = if (version.endsWith("SNAPSHOT")) "snapshots" else "releases"
Some(
Resolver.file(
"Daithiocrualaoich Github " + publishType,
file(System.getProperty("user.home") + "/daithiocrualaoich.github.com/maven/repo-" + publishType)
)
)
}
maxErrors := 20
javacOptions ++= Seq("-source", "1.6", "-target", "1.6", "-encoding", "utf8")
scalacOptions ++= Seq("-unchecked", "-optimise", "-deprecation", "-Xcheckinit", "-encoding", "utf8")
Jump to Line
Something went wrong with that request. Please try again.