-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.sbt
43 lines (41 loc) · 1.27 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
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/aoiroaoino/nanolens"),
"scm:[email protected]:aoiroaoino/nanolens.git"
)
)
ThisBuild / developers := List(
Developer(
id = "aoiroaoino",
name = "Naoki Aoyama",
email = "[email protected]",
url = url("https://github.com/aoiroaoino")
)
)
ThisBuild / licenses := Seq("MIT License" -> url("https://opensource.org/licenses/mit-license"))
ThisBuild / homepage := Some(url("https://github.com/aoiroaoino/nanolens"))
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true
publishTo := sonatypePublishToBundle.value
sonatypeCredentialHost := "s01.oss.sonatype.org"
import ReleaseTransformations._
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)