forked from FasterXML/jackson-module-scala
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sbt
82 lines (70 loc) · 2.02 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
73
74
75
76
77
78
79
80
81
82
import ReleaseTransformations._
import com.typesafe.sbt.osgi.OsgiKeys
// OSGI bundles
osgiSettings
OsgiKeys.exportPackage := Seq(
"com.fasterxml.jackson.module.scala.*"
)
OsgiKeys.privatePackage := Nil
// 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>
}
// use maven style tag name
releaseTagName <<= (name, version in ThisBuild) map { (n,v) => n + "-" + v }
// sign artifacts
releasePublishArtifactsAction := PgpKeys.publishSigned.value
// don't push changes (so they can be verified first)
releaseProcess := Seq(
checkSnapshotDependencies,
inquireVersions,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion
)