forked from FasterXML/jackson-module-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sbt
73 lines (61 loc) · 1.84 KB
/
release.sbt
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import PgpKeys._
import sbtrelease._
import ReleaseKeys._
import ReleaseStateTransformations._
// OSGI bundles
osgiSettings
OsgiKeys.exportPackage := Seq(
"com.fasterxml.jackson.module.scala.*"
)
// publishing
publishMavenStyle := true
publishTo <<= version { v =>
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")
}
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := {
<url>http://wiki.fasterxml.com/JacksonModuleScala</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:[email protected]:FasterXML/jackson-module-scala.git</connection>
<developerConnection>scm:git:[email protected]:FasterXML/jackson-module-scala.git</developerConnection>
<url>http://github.com/FasterXML/jackson-module-scala</url>
</scm>
<developers>
<developer>
<id>tatu</id>
<name>Tatu Saloranta</name>
<email>[email protected]</email>
</developer>
<developer>
<id>christopher</id>
<name>Christopher Currie</name>
<email>[email protected]</email>
</developer>
</developers>
<contributors>
<contributor>
<name>Nathaniel Bauernfeind</name>
</contributor>
<contributor>
<name>Anton Panasenko</name>
</contributor>
</contributors>
}
// release
releaseSettings
// bump bugfix on release
nextVersion := { ver => Version(ver).map(_.bumpBugfix.asSnapshot.string).getOrElse(versionFormatError) }
// use maven style tag name
tagName <<= (name, version in ThisBuild) map { (n,v) => n + "-" + v }