-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
65 lines (56 loc) · 1.91 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
65
import sbt.Keys._
import ReleaseTransformations._
import sbtrelease.{Version, versionFormatError}
lazy val appVendor = "com.interelgroup"
lazy val appName = "core3-example-ui"
organization := appVendor
name := appName
scalaVersion in ThisBuild := "2.12.3"
lazy val defaultResolvers = Seq(
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/releases",
"lightshed-maven" at "http://dl.bintray.com/content/lightshed/maven"
)
lazy val core3_example_ui = (project in file("."))
.settings(
organization := appVendor,
name := appName,
resolvers ++= defaultResolvers,
libraryDependencies ++= Seq(
guice,
"org.jline" % "jline" % "3.2.0",
"com.github.scopt" %% "scopt" % "3.5.0",
"com.github.etaty" %% "rediscala" % "1.8.0",
"com.interelgroup" %% "core3" % "2.2.0",
"org.webjars" % "jquery" % "3.0.0"
),
buildInfoKeys := Seq[BuildInfoKey](organization, name, version),
buildInfoPackage := "core3_example_ui",
buildInfoObject := "BuildInfo"
)
.enablePlugins(PlayScala, BuildInfoPlugin)
//loads the Play project at sbt startup
onLoad in Global := (Command.process("project core3_example_ui", _: State)) compose (onLoad in Global).value
scalacOptions in ThisBuild ++= Seq("-unchecked", "-deprecation")
//Release Config
releaseVersion := {
v =>
Version(v).map {
version =>
val next = System.getProperty("release-version-bump", "bugfix") match {
case "major" => version.withoutQualifier.bump(sbtrelease.Version.Bump.Major)
case "minor" => version.withoutQualifier.bump(sbtrelease.Version.Bump.Minor)
case "bugfix" => version.withoutQualifier
}
next.string
}.getOrElse(versionFormatError)
}
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
)