Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (15 sloc) 521 Bytes
name := "sbt-version-info-plugin"
organization := "com.gu"
version := "2.1-SNAPSHOT"
sbtPlugin := true
// don't bother publishing javadoc
publishArtifact in (Compile, packageDoc) := false
publishTo <<= (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)
)
)
}