summaryrefslogblamecommitdiff
path: root/publish.sbt
blob: 3c2ade73af520cce3f2a76540439cf88789167f3 (plain) (tree)
1
2
3
4
5
6
7
8
                

                                                               
                                                                                 
                                                                      


                                                                                           









                                                                       

                                                                             



                                                                             





                                                                             
  
inThisBuild(Seq(
  organization := "io.crashbox",
  organizationHomepage := Some(new URL("https://crashbox.io")),
  description := "A Scala library for easy and idiomatic JSON (de)serialization",
  homepage := Some(new URL("https://github.com/jodersky/spray-json")),
  startYear := Some(2011),
  licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")),
  publishMavenStyle := true,
  publishTo := {
    val nexus = "https://oss.sonatype.org/"
    if (version.value.trim.endsWith("SNAPSHOT"))
      Some("snapshots" at nexus + "content/repositories/snapshots")
    else
      Some("releases" at nexus + "service/local/staging/deploy/maven2")
  },
  pomIncludeRepository := { _ => false },
  pomExtra :=
    <scm>
      <url>git://github.com/jodersky/spray-json.git</url>
      <connection>scm:git:git@github.com:jodersky/spray-json.git</connection>
    </scm>
      <developers>
        <developer><id>sirthias</id><name>Mathias Doenitz</name></developer>
        <developer><id>jrudolph</id><name>Johannes Rudolph</name></developer>
        <developer><id>jodersky</id><name>Jakob Odersky</name></developer>
      </developers>,
  version := {
    import sys.process._
    ("git describe --always --dirty=-SNAPSHOT --match v[0-9].*" !!).tail.trim
  }
))