-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
44 lines (41 loc) · 1.48 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
val commonSettings = Seq(
organization := "cetic",
version := "0.1.18",
scalaVersion := "2.12.6",
// git info
git.formattedShaVersion := git.gitHeadCommit.value map { sha =>
s"$sha".substring(0, 8)
},
// docker info
dockerRepository := Some("ceticasbl/tsimulus-saas"),
dockerBaseImage := "openjdk:8",
dockerUpdateLatest := true,
dockerAlias := DockerAlias(dockerRepository.value, dockerUsername.value, name.value, git.formattedShaVersion.value),
dockerUsername := Some("ceticasbl")
)
lazy val backend = (project in file("backend"))
.enablePlugins(DockerPlugin, JavaAppPackaging, GitVersioning)
.settings(
name := "tsaas-backend",
commonSettings
)
lazy val root = (project in file("."))
.settings(
name := "tsimulus-saas"
).aggregate(backend)
//
// Scala Compiler Options
// If this project is only a subproject, add these to a common project setting.
//
scalacOptions in ThisBuild ++= Seq(
"-target:jvm-1.8",
"-encoding", "UTF-8",
"-deprecation", // warning and location for usages of deprecated APIs
"-feature", // warning and location for usages of features that should be imported explicitly
"-unchecked", // additional warnings where generated code depends on assumptions
"-Xlint", // recommended additional warnings
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver
"-Ywarn-value-discard", // Warn when non-Unit expression results are unused
"-Ywarn-inaccessible",
"-Ywarn-dead-code"
)