-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sbt
48 lines (43 loc) · 1.23 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
import Dependencies._
import common._
scalaVersion in ThisBuild := "2.11.8"
scalacOptions in ThisBuild ++= Seq(
"-target:jvm-1.7",
"-encoding",
"UTF-8",
"-unchecked",
"-deprecation",
"-Xfuture",
"-feature",
"-language:higherKinds",
"-language:implicitConversions",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Ywarn-unused"
)
scalacOptions in (Compile, console) ~= (_ filterNot (_ contains "paradise"))
// customize version
/* if you wanna add git commit hash to artifact id, uncomment this
val gitHeadCommitSha = settingKey[String]("current git commit SHA")
val release = settingKey[Boolean]("is publishing released version")
release := sys.props("release") == "true"
gitHeadCommitSha in ThisBuild := scala.sys.process.Process("git rev-parse HEAD").lines.head
version in ThisBuild := {
val v = "0.1.0"
if (release.value) v
else s"$v-${gitHeadCommitSha.value}-SNAPSHOT"
}
*/
val release = settingKey[Boolean]("is publishing released version")
release := sys.props("release") == "true"
version in ThisBuild := {
val v = "0.1.0"
if (release.value) v
else s"$v-SNAPTHOT"
}
// client project
lazy val rootProject = simpleProject
.settings(
ensimeIgnoreMissingDirectories := true
)