summaryrefslogtreecommitdiff
path: root/publish.sbt
blob: 134a769adaff3bf5499b1e052e5164e2bc8b357d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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

site.settings

site.includeScaladoc()

ghpages.settings

git.remoteRepo := "git@github.com:jrudolph/json-lenses.git"

releaseSettings

lsSettings