Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (23 sloc) 0.842 kb
import java.util.jar._
organization in ThisBuild := "com.gu"
scalaVersion in ThisBuild := "2.11.2"
crossScalaVersions in ThisBuild := Seq("2.11.2")
releaseSettings
publishArtifact := false
packageOptions in ThisBuild <+= (version, name) map { (v, n) =>
Package.ManifestAttributes(
Attributes.Name.IMPLEMENTATION_VERSION -> v,
Attributes.Name.IMPLEMENTATION_TITLE -> n,
Attributes.Name.IMPLEMENTATION_VENDOR -> "guardian.co.uk"
)
}
publishTo in ThisBuild <<= (version) { version: String =>
val publishType = if (version.endsWith("SNAPSHOT")) "snapshots" else "releases"
Some(
Resolver.file(
"guardian github " + publishType,
file(System.getProperty("user.home") + "/guardian.github.com/maven/repo-" + publishType)
)
)
}
scalacOptions in ThisBuild += "-deprecation"
Jump to Line
Something went wrong with that request. Please try again.