forked from ElderResearch/ssc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
64 lines (46 loc) · 1.29 KB
/
build.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
import ReleaseTransformations._
import sbt._
name := "Simple Scala Config"
moduleName := "ssc"
organization := "com.elderresearch"
licenses := Seq(("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")))
scalaVersion := "2.11.8"
crossScalaVersions := Seq("2.11.8", "2.12.3")
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"com.typesafe" % "config" % "1.3.1",
"org.scalatest" % "scalatest" % "3.0.0" % Test cross CrossVersion.binary
)
publishMavenStyle := true
bintrayOrganization := Some("elderresearch")
bintrayRepository := "OSS"
bintrayReleaseOnPublish in ThisBuild := false
tutSettings
tutTargetDirectory := baseDirectory.value
lazy val runTut = releaseStepTask(tut)
lazy val commitTut = ReleaseStep((st: State) ⇒ {
val extracted = Project.extract(st)
val vcs = extracted.get(releaseVcs).get
vcs.add("README.md")
val status = vcs.status.!!.trim
if (status.nonEmpty) {
vcs.commit("Generated README.md", sign = false)
}
st
})
releaseCrossBuild := true
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
runTut,
commitTut,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
pushChanges
)