summaryrefslogblamecommitdiff
path: root/publish.sbt
blob: 0153db55f5b3d432a27748dc623862d67cfba53f (plain) (tree)



















                                                                                                    
publishTo <<= version { v: String =>
  val nexus = "https://oss.sonatype.org/"
  if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
  else                             Some("releases" at nexus + "service/local/staging/deploy/maven2")
}

publishMavenStyle := true

publishArtifact in Test := false

pomIncludeRepository := { _ => false }

credentials += Credentials(Path.userHome / ".ivy2" / ".credentials")

pomExtra :=
  Helpers.generatePomExtra("git@github.com:jrudolph/json-lenses.git",
                           "scm:git:git@github.com:jrudolph/json-lenses.git",
                           "jrudolph", "Johannes Rudolph")

useGpg := true