-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sbt
46 lines (42 loc) · 1.44 KB
/
publish.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
ThisBuild / organization := "io.github.olegych"
ThisBuild / organizationName := "OlegYch"
ThisBuild / organizationHomepage := Some(url("https://github.com/OlegYch"))
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/OlegYch/sbt-cached-ci"),
"scm:[email protected]:OlegYch/sbt-cached-ci.git"
)
)
ThisBuild / developers := List(
Developer(
id = "OlegYch",
name = "Aleh Aleshka",
email = "[email protected]",
url = url("https://github.com/OlegYch")
)
)
ThisBuild / description := "Incremental sbt builds for CI environments."
ThisBuild / licenses := Seq("BSD-style" -> url("http://www.opensource.org/licenses/bsd-license.php"))
ThisBuild / homepage := Some(url("https://github.com/OlegYch/sbt-cached-ci"))
// Remove all additional repository other than Maven Central from POM
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true
ThisBuild / publishTo := sonatypePublishToBundle.value
ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / sonatypeProfileName := "OlegYch"
import ReleaseTransformations._
ThisBuild / versionScheme := Some("early-semver")
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("publishSigned"),
releaseStepCommand("sonatypeBundleRelease"),
setNextVersion,
commitNextVersion,
pushChanges
)