-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sbt
More file actions
33 lines (28 loc) · 948 Bytes
/
build.sbt
File metadata and controls
33 lines (28 loc) · 948 Bytes
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
import sbtrelease.Version
import sbtrelease.ReleasePlugin.autoImport.ReleaseKeys._
import sbtrelease.ReleaseStateTransformations._
name := "SbtReleaseExample"
version := "1.0"
scalaVersion := "2.12.1"
val releaseSettings = Seq(
publish := { },
releaseNextVersion in ThisBuild := { ver => Version(ver).map(_.bumpBugfix.string).getOrElse("Error") },
releaseProcess in ThisBuild := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest
// setReleaseVersion,
// commitReleaseVersion,
// tagRelease,
// publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up
// setNextVersion
// commitNextVersion,
// pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
)
)
lazy val root = project.in(file(".")).settings(
Seq(
name := "SbtReleaseExample"
)
)