blob: 3c2ade73af520cce3f2a76540439cf88789167f3 (
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
|
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
}
))
|