aboutsummaryrefslogtreecommitdiff
path: root/publish.sbt
blob: 9c0a42e5f48b7e14a9a56379bbd2d67b23323135 (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
organization in ThisBuild := "io.crashbox"
licenses in ThisBuild := Seq(
  ("BSD-3-Clause", url("https://opensource.org/licenses/BSD-3-Clause")))
homepage in ThisBuild := Some(url("https://github.com/jodersky/commando"))
publishMavenStyle in ThisBuild := true
publishTo in ThisBuild := Some(
  if (isSnapshot.value)
    Opts.resolver.sonatypeSnapshots
  else
    Opts.resolver.sonatypeStaging
)
scmInfo in ThisBuild := Some(
  ScmInfo(
    url("https://github.com/jodersky/commando"),
    "scm:git@github.com:jodersky/commando.git"
  )
)
developers in ThisBuild := List(
  Developer(
    id = "jodersky",
    name = "Jakob Odersky",
    email = "jakob@odersky.com",
    url = url("https://crashbox.io")
  )
)
version in ThisBuild := {
  import sys.process._
  ("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim
}